aboutsummaryrefslogtreecommitdiffstats
path: root/file.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* * file.c (discardline): not usedFumitoshi UKAI2002-12-211-14/+1
| | | | From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
* fix indentFumitoshi UKAI2002-12-211-5/+6
|
* [w3m-dev 03593] Re: segmentation fault when <title> exist after <img>Fumitoshi UKAI2002-12-211-22/+71
| | | | | | | | | | | | | | * file.c (cur_title): added (save_obuf): deleted (process_title): added (process_n_title): added (feed_title): added (HTMLtagproc1): rewrite HTML_TITLE, HTML_N_TITLE, HTML_TITLE_ALT, HTML_N_HEAD, HTML_HEAD (HTMLlineproc0): check RB_TITLE (completeHTMLstream): add RB_TITLE (loadHTMLstream): initialize cur_title From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
* [w3m-dev 03590] segmentation fault when <title> exist after <img>Fumitoshi UKAI2002-12-201-8/+5
| | | | | | | | * file.c (save_line): deleted (save_prevchar): deleted (save_obuf): added (HTMLtagproc1): bcopy save_obuf From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
* fix indentFumitoshi UKAI2002-12-181-6/+4
|
* [w3m-dev 03578] meta refreshFumitoshi UKAI2002-12-181-33/+52
| | | | | | | | | | | | | | | | | | | | | | | | | * file.c (getMetaRefreshParam): do nothing if refresh_interval < 0 (HTMLtagproc1): rewrite refresh (HTMLlineproc2body): add HTML_META * fm.h (BP_RELOAD): deleted (Buffer): add event (AL_IMPLICIT_DONE): deleted (AL_ONCE): deleted (AL_RESTORE): deleted (AlarmEvent): added * main.c (AlarmEvent): deleted (PrevAlarm): deleted (DefaultAlarm): added (CurrentAlarm): point to DefaultAlarm (main): CurrentKeyData, CurrentCmdData handle Currentbuf->event (SigAlarm): CurrentAlarm is pointer (copyAlarmEvent): deleted (setAlarm): setAlarmEvent pass &DefaultAlarm (setAlarmEvent): arg event (ldDL): no BP_RELOAD * proto.h (setAlarmEvent): arg event From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
* fix indentFumitoshi UKAI2002-12-141-5/+6
|
* [w3m-dev 03569] Re: preserve timestampFumitoshi UKAI2002-12-141-13/+18
| | | | | | | | | | * file.c (loadGeneralFile): PresetveTimestamp (_doFileCopy): is_pipe, PreserveTimestamp (doFileSave): PreserveTImestamp * fm.h (PreserveTimestamp): added * rc.c (CMT_PRESERVE_TIMESTAMP): added (params3): add preserve_timestamp From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
* [w3m-dev 03568] Re: preserve timestampFumitoshi UKAI2002-12-141-5/+30
| | | | | | | | | | | | | | | | | | * etc.c (USE_COOKIE): moved * file.c (utime.h): include (setModtime): added (loadGeneralFile): set f.modtime (_doFileCopy): setModtime() (doFileSave): setModtime() * ftp.c (getFtpModtime): added (openFTP): pass URLFile, set modtime * html.h (URLFile): add modtime * proto.h (openFTP): arg URLFile *uf (mymktime): always * url.c (init_stream): initialize modtime (openFTPStream): pass URLFile (openURL): openFTPStream From: Takahashi Youichirou <nikuq@hk.airnet.ne.jp>
* [w3m-dev 03563] Directory Traversal Vulnerabilities in FTP ClientsFumitoshi UKAI2002-12-131-10/+8
| | | | | * file.c (guess_save_name): pass guess_filename From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
* [w3m-dev 03551] Re: External URI loaderFumitoshi UKAI2002-12-101-4/+4
| | | | | * file.c (loadGeneralFile): fix SCM_UNKNONWN From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
* [w3m-dev 03548] close anchor before <img align=...>Fumitoshi UKAI2002-12-091-33/+43
| | | | | | | | | | | | | | | | | | | | | * file.c (process_img): use div_int (process_hr): use div_int (process_idattr): don't close_anchor (CLOSE_A): added (HTMLtagproc1): </p> close anchor <dl>,<ul>,<ol>,<blockquote>,<li>,<dt>,<dd> close anchor <noframes> close anchor <pre> close anchor <center> close anchor <div> close anchor add DIV_INT <form> close anchor * html.c (TagMAP): add div_int * html.h (HTML_DIV_INT): added (HTML_N_DIV_INT): added * tagtable.tab (div_int): added (/div_int): added From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
* [w3m-dev 03544] Can't display "1&2" in tableFumitoshi UKAI2002-12-091-2/+2
| | | | | * file.c (HTMLlineproc0): continue -> R_ST_NORMAL From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
* * file.c (loadGeneralFile): missing `{', fix indent for SCM_UNKNOWNFumitoshi UKAI2002-12-091-3/+3
| | | | | * main.c (set_buffer_environ): unused variables `prev_col' From: Fumitoshi UKAI <ukai@debian.or.jp>
* [w3m-dev 03543] External URI loader (Debian closes: Bug#169962)Fumitoshi UKAI2002-12-091-9/+10
| | | | | * file.c (loadGeneralFile): rewrite SCM_UNKNOWN From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
* [w3m-dev 03542] news supportFumitoshi UKAI2002-12-091-2/+2
| | | | | | | * file.c (loadGeneralFile): NNTP as well as NEWS * indep.c (url_unquote_char): check % hex hex (url_unquote): unquote except \0, \n, \r From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
* fix indentFumitoshi UKAI2002-12-081-5/+9
|
* [w3m-dev 03536] <del>, <s>Fumitoshi UKAI2002-12-061-5/+19
| | | | | | | | | | | | | | | | | | | | * file.c (HTMLtagproc1): <s>..</s> is [S:...:S] (HTMLtagproc0): <del> will delete <table> * fm.h (RB_S): added * html.c (TagMAP): <s>,</s> move <internal>, </internal> * html.h (HTML_S): added (HTML_N_S): added (HTML_INTERNAL): renumed (HTML_N_INTERNAL): ditto (MAX_HTMLTAG): add 2 * rc.c (CMT_DISP_INS_DEL): update * table.c (feed_table_tag): add HTML_S, HTML_N_S * table.h (TBLM_S): added (TBLM_ANCHOR): renum * tagtable.tab: (strike, s): HTML_S (/strike, /s): HTML_N_S From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
* [w3m-dev 03535] close anchor, quote <Fumitoshi UKAI2002-12-061-2/+9
| | | | | | * file.c (HTMLtagproc1): close_anchor * frame.c (createFrameFile): quote < From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
* [w3m-dev 03534] cleanup file.cFumitoshi UKAI2002-12-061-12/+7
| | | | | * file.c (HTMLlineproc2body): cleanup From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
* * version.c.in: w3m/0.3.2.2+cvsFumitoshi UKAI2002-12-061-3/+3
| | | | | * NEWS: 0.3.2.2 From: Fumitoshi UKAI <ukai@debian.or.jp>
* fix indentFumitoshi UKAI2002-12-051-3/+3
|
* [w3m-dev 03529] Support of title, accesskey of anchorFumitoshi UKAI2002-12-051-46/+72
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * anchor.c (putAnchor): arg title, key initialize slave (registerHref): arg title, key (registerName): title = NULL, key = '\0' (registerForm): title = NULL, key = '\0' (_put_anchor_news): title = NULL, key = '\0' (_put_anchor_all): title = NULL, key = '\0' (addMultirowsImg): register title, accesskey (addMultirowsForm): title = NULL, key = '\0' (getAnchorText): added * display.c (displayBuffer): show title if any * file.c (set_breakpoint): use bcopy (back_to_breakpoint): use bcopy (flushline): s/anchor/anchor.url/ s/anchor_hseq/anchor.hseq/ s/anchor_target/anchor.target/ add anchor.* (close_effect0): s/anchor/anchor.url/ s/anchor_hseq/anchor.hseq/ (close_anchor): use bzero (process_img): ATTR_TITLE, (HTMLtagproc1): s/anchor/anchor.url/ target, referer, title, accesskey, hseq (HTMLlineproc2body): ATTR_TITLE, ATTR_ACCESSKEY (init_henv): use bzero * fm.h (Anchor): add title, accesskey, slave (Breakpoint): use Anchor (struct readbuffer): use Anchor * funcname.tab (ACCESSKEY): added (LINK_MENU): added * html.c (ALST_A): add ATTR_TITLE, ATTR_ACCESSKEY (ALST_IMG): add ATTR_TITLE (ALST_IMG_ALT): add ATTR_TITLE (AttrMAP): add accesskey, renum * html.h (ATTR_ACCESSKEY): added (ATTR_*): renum 50->60 * main.c (linkMn): added (accessKey): added * menu.c (LinkMenu): deleted (LinkV): deleted (initLinkMenu): deleted (lmGoURL): deleted (popupMenu): delete initLinkMenu() (initMenu): delete Link (link_menu): added (accesskey_menu): added * proto.h (linkMn): added (link_menu): added (accessKey): added (accesskey_menu): added (putAnchor): arg title, key (registerHref): arg title, key (registerImg): arg title (getAnchorText): added * doc/README.func (ACCESSKEY): added (LINK_MENU): added * doc-jp/README.func (ACCESSKEY): added (LINK_MENU): added * scripts/w3mhelp.cgi.in (Hyperlink operation): add linkMn accessKey From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
* [w3m-dev 03523] Re: del/insFumitoshi UKAI2002-12-041-8/+21
| | | | | | | | | | | | | * file.c (HTMLtagproc1): check displayInsDel, RB_DEL * fm.h (RB_DEL): added (displayInsDel): added * rc.c (CMT_DISP_INS_DEL): added (display_ins_del): added * table.c (feed_table_tag): check displayInsDel, TBLM_DEL * table.h (TBLM_DEL): added (TBLM_ANCHOR): renum (struct table_mode): unsigned int pre_mode From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
* [w3m-dev 03522] newline around <pre>..</pre>Fumitoshi UKAI2002-12-041-3/+13
| | | | | * file.c (HTMLtagproc1): break before <pre>/after </pre> if necessary From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
* [w3m-dev 03510] waiting time when cookie was rejected.Fumitoshi UKAI2002-12-031-2/+2
| | | | | * file.c (readHeader): display cookie warnings for only 1 sec From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
* fix indentFumitoshi UKAI2002-12-031-107/+107
|
* [w3m-dev 03509] HTML parserFumitoshi UKAI2002-12-031-184/+143
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * file.c (close_textarea): delete (HTMLtagproc1): rewrite delete HTML_EOL move HTML_LISTING, HTML_N_LISTING add HTML_PRE_PLAIN, HTML_N_PRE_PLAIN add HTML_PLAINTEXT end_tag (HTMLlineproc0): s/str/line/ rewrite (completeHTMLstream): </textarea> if necessary * fm.h (struct readbuffer): delete ignore_tag add end_tag (RB_XMPMODE): deleted (RB_LSTMODE): deleted (RB_SCRIPT): added (RB_STYLE): added (RB_*): renumber (R_ST_EOL): added (R_ST_*): renumber (ST_IS_TAG): check R_ST_EOL * form.c (form_fputs_decode): remove <eol> handling * frame.c (newFrame): remove_space() (CASE_TABLE_TAG): added (createFrameFile): rewrite * html.c (TagMAP): delete eol add pre_plain, /pre_plain * html.h (HTML_EOL): deleted (HTML_PRE_PLAIN): added (HTML_N_PRE_PLAIN): added * table.c (visible_length): rewrite (visible_length_plain): added (maximum_visible_length_plain): added (do_refill): R_ST_EOL (table_close_select): end_tag (table_close_textarea): end_tag (TAG_ACTION_PLAIN): added (feed_table_tag): rewrite (feed_table): rewrite * table.h (TBLM_*) reassign (struct table_mode): delete ignore_tag add end_tag * tagtable.tab (eol): deleted (pre_plain): added (/pre_plain): added From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
* [w3m-dev 03505] Re: coredump when ssl errorFumitoshi UKAI2002-12-031-5/+5
| | | | | * file.c (loadGeneralFile): term_raw(), SIGINT before retry From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
* fix indentFumitoshi UKAI2002-12-021-2/+2
|
* [w3m-dev 03504] coredump when ssl errorFumitoshi UKAI2002-12-021-1/+5
| | | | | * file.c (loadGeneralFile): term_raw, SIGINT From: AIDA Shinra <aida-s@jcom.home.ne.jp>
* remove ununsed variablesFumitoshi UKAI2002-12-021-2/+1
| | | | | | * file.c (addLink): unused variable `t' * menu.c (lmGoURL): unused variable `pu' From: Fumitoshi UKAI <ukai@debian.or.jp>
* [w3m-dev 03501] link tag supportFumitoshi UKAI2002-12-021-2/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * buffer.c (reshapeBuffer): initialize formlist, linklist, maplist, hmarklist, imarklist * file.c (addLink): added (HTMLlineproc2body): add HTML_LINK (loadHTMLstream): use HTMLlineproc0 not in R_ST_NORMAL (reloadBuffer): initialize linklist, maplist, hmarklist, imarklist * fm.h (LINK_TYPE_NONE): added (LINK_TYPE_REL): added (LINK_TYPE_REV): added (LinkList): added (Buffer): add linklist * html.c (ALST_LINK): added (TagMAP): add link (AtrMAP): add rel, rev, title * html.h (HTML_LINK): added (ATTR_REL): added (ATTR_REV): added (ATTR_TITLE): added * map.c (append_map_info): anchor (append_link_info): added (page_info_panel): append_link_info * menu.c (LinkMenu): added (linkV): added (initLinkMenu): added (lmGoURL): added (popupMenu): initLinkMenu() (initMenu): w3mMenuList new 4 add "Link" * tagtable.tab (link): added From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
* [w3m-dev 03498] Re: parse <!-- ... --> in <script>Fumitoshi UKAI2002-11-281-3/+1
| | | | | | * file.c (HTMLlineproc0): tag in textarea * frame.c (createFrameFile): fix comment processing in frame From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
* fix indentFumitoshi UKAI2002-11-271-4/+3
|
* [w3m-dev 03496] parse <!-- ... --> in <script>Fumitoshi UKAI2002-11-271-3/+24
| | | | | | | | * etc.c (read_token): check <pre> * file.c (HTMLlineproc0): remove comment processing check pre mode comment processing move From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
* use local_cookie for support local-cgi commandsFumitoshi UKAI2002-11-261-4/+5
| | | | | | | | | | | | | | | | | * file.c (loadGeneralFile): pass Local_cookie to DirBufferCommand * fm.h (Local_cookie): Str * local.c (setLocalCookie): Str, set_environ() (set_cgi_environ): remove LOCAL_COOKIE * main.c (ldhelp): pass Local_cookie (adBmark): ditto * rc.c (optionpanel_src1): cookie (load_option_panel): pass Local_cookie * w3mbookmark.c (main): check Local_cookie * w3mhelperpanel (main): ditto * scripts/dirlist.cgi.in: ditto * scripts/w3mhelp.cgi.in: ditto * scripts/multipart/multipart.cgi.in: ditto From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
* fix indentFumitoshi UKAI2002-11-261-4/+4
|
* [w3m-dev 03488] meta refresh in frameFumitoshi UKAI2002-11-261-27/+42
| | | | | | | | * file.c (getMetaRefreshParam): added (HTMLtagproc1): use getMetaRefreshParam() * frame.c (createFrameFile): check meta refresh * proto.h (getMetaRefreshProgram): added From: Hiroyuki Ito <hito@crl.go.jp>
* fix indentFumitoshi UKAI2002-11-251-8/+8
|
* [w3m-dev 03476] Re: Bug#170506: w3m: Unable to use mozilla bugzillaFumitoshi UKAI2002-11-251-5/+11
| | | | | | | | * file.c (HTMLtagproc1): initialize ignore_tag in table_mode (HTMLtagproc0): check table_level * table.c (feed_table_tag): set mode->ignore_tag * table.h (struct table_mode): add ignore_tag From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
* [w3m-dev 03471] Re: SETPGRP()Fumitoshi UKAI2002-11-241-5/+1
| | | | | | | | | | | | | | | * configure: SETPGRP() always defined * proto.h (close_all_fds): added (myExec): #ifdef HAVE_SETPGRP * etc.c (close_all_fds): added (myExec): #ifdef HAVE_SETPGRP (mySystem): #ifndef -> #ifdef * file.c (_doFileCopy): delete #ifdef HAVE_SETPGRP (doFileSave): ditto * image.c (openImgdisplay): delete #ifdef HAVE_SETPGRP use close_all_fds() * search.c (open_migemo): ditto From: Fumitoshi UKAI <ukai@debian.or.jp>
* [w3m-dev 03466] Re: background download when external viewerFumitoshi UKAI2002-11-221-1/+3
| | | | | * file.c (doExternal): UFclose(&uf); From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
* fix indentFumitoshi UKAI2002-11-221-5/+5
|
* [w3m-dev 03459] background download when external viewerFumitoshi UKAI2002-11-221-4/+27
| | | | | | | | * etc.c (myExec): added (mySystem): rewrite to use myExec() * file.c (doExternal): run background if BackgroundExtViewer * proto.h (myExec): added From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
* [w3m-dev 03444] download from ftp.Fumitoshi UKAI2002-11-181-6/+15
| | | | | | | | | | | | | * file.c (FTPhalfclose: static (loadGeneralFile): UFclose FTPhalfclose for SCM_FTP UFclose before signal back (loadImageBuffer): UFclose before signal back (openGeneralPagerBuffer): UFclose * ftp.c (ftp_fclose): added (Ftpfclose): dont read response(), but ftp_fclose() (FtpBye): ftp_fclose() From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
* fix indentFumitoshi UKAI2002-11-151-3/+2
|
* [w3m-dev 03441] charset of save fileFumitoshi UKAI2002-11-151-7/+10
| | | | | | | * file.c (_doFileCopy): use conv_from_system() (doFileSave): conv_from_system() * main.c (DownloadListBuffer): conv_from_system() From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
* fix indentFumitoshi UKAI2002-11-151-3/+5
|
* [w3m-dev 03436] Check image sizeFumitoshi UKAI2002-11-151-3/+7
| | | | | | | | * file.c (process_img): check w > MAX_IMAGE_SIZE (HTMLlineproc2body): check w,h > MAX_IMAGE_SIZE * fm.h (MAX_IMAGE_SIZE): added * image.c (getImageSize): check w,h,width,height > MAX_IMAGE_SIZE From: Hiroyuki Ito <hito@crl.go.jp>