Only read title when in head

Before this change, it was possible that w3m would interpret a title tag
under e.g. an svg tag as the page title.
This commit is contained in:
Robert Alm Nilsson
2022-09-18 10:49:28 +02:00
committed by Tatsuya Kinoshita
parent 54fb5fa186
commit 0189e8aa5c
2 changed files with 20 additions and 11 deletions

1
fm.h
View File

@@ -675,6 +675,7 @@ struct readbuffer {
#define RB_DEL 0x100000
#define RB_S 0x200000
#define RB_HTML5 0x400000
#define RB_HEAD 0x800000
#define RB_GET_ALIGN(obuf) ((obuf)->flag&RB_ALIGN)
#define RB_SET_ALIGN(obuf,align) do{(obuf)->flag &= ~RB_ALIGN; (obuf)->flag |= (align); }while(0)