aboutsummaryrefslogtreecommitdiffstats
path: root/file.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2003-01-08[w3m-dev 03617] sourcefile when Content-Encoding: is specified.Fumitoshi UKAI1-12/+25
* file.c (uncompress_stream): add src arg (examineFile): change uncompress_stream (loadGeneralFile): change uncompress_stream (doExternal): src (uncompress_stream): ext tmpfile with same ext From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-08[w3m-dev 03616] Re: data: URL schemeFumitoshi UKAI1-3/+6
* file.c (loadGeneralFile): check SCM_DATA (loadImageBuffer): newBuffer() * html.h (SCM_DATA): added * indep.c (url_unquote): deleted (Str_url_unquote): renamed from Str_form_unquote + is decoded is_form only * indep.h (url_unquote): deleted (Str_url_unquote): added (Str_form_unquote): define by Str_url_unquote * main.c (followA): file_unquote (cmd_loadURL): file_unquote * url.c (DefaultPort): add for data: (schemetable): add "data" (DefaultFile): SCM_FTPDIR (parseURL): scheme copied from current (parseURL2): SCM_DATA check SCM_FTP, SCM_FTPDIR (_parsedURL2Str): add data in scheme_str handle SCM_DATA SCM_FTPDIR (openURL): file_unquote handle SCM_DATA From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-06[w3m-dev 03610] Re: news:<newsgroup>Fumitoshi UKAI1-4/+11
* anchor.c (_put_anchor_news): check '<' (reAnchorNewsheader): added * file.c (loadSomething): Subject: as buffername (checkHeader): check buf->document_header (loadGeneralFile): reAnchorNewsheader * html.h (SCM_NNTP_GROUP): added * main.c (main): delete USE_NNTP in switch (newbuf->real_scheme) (chkNMIDBuffer): lowercase in url_like_pat * news.c (add_news_message): add scheme, group as arg (openNewsStream): check SCM_NNTP_GROUP check current_news.host (readNewsgroup): rewrite to support nntp:,news: extension * proto.h (reAnchorNewsheader): added * url.c (DefaultPort): add 119 for nntp group (parseURL2): rewrite to support nntp:,news: extension (_parsedURL2Str): add for SCM_NNTP_GROUP (openURL): rewrite to support nntp:,news: extension From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-12-27gcc -Wall -Werror cleanFumitoshi UKAI1-2/+1
* file.c (loadHTMLstream): unused variable `p' * news.c (news_command): unused variable `c' (news_open): unused variable `tmp' (readNewsgroup): volatile page, qgroup, flag, start, end uninitialized variable `page' * url.c (openURL): unused variable `fw', `r', `stream' From: Fumitoshi UKAI <ukai@debian.or.jp>
2002-12-27fix indentFumitoshi UKAI1-10/+10
2002-12-27[w3m-dev 03608] news:<newsgroup>Fumitoshi UKAI1-30/+68
* XMakefile (LSRCS): add news.c (LOBJS): add news.o * file.c (loadSOmething): don't UFclose() for nntp/news (readHeader): remove . at beginning of line for news img link to file: (loadGeneralFile): add SCM_NEWS_GROUP don't UFclose() for nntp/news (loadHTMLstream): . line check for news (loadBuffer): . line check for news * fm.h (NNTP_server): added (NNTP_mode): added (MaxNewsMessage): added * html.h (SCM_NEWS_GROUP): added * main.c (main): NNTP_server or NNTPSERVER NNTP_mode or NNTPMODE add SCM_NEWS_GROUP (followA): remove news:..@.. check (cmd_loadURL): remove news:...@.. check (w3m_exit): disconnectNews * proto.h (openNewsStream): added (readNewsgroup): added (disconnectNews): added * rc.c (CMT_NNTP_SERVER): added (CMT_NNTP_MODE): added (CMT_MAX_NEWS): added (params9): add nntpserver, nntpmode, max_news * url.c (DefaultPort): add 119 for news group (parseURL2): news:..@... is SCM_NEWS_GROUP (_parsedURL2Str): add news for SCM_NEWS_GROUP (openURL): cleanup SCM_NEWS add SCM_NEWS_GROUP * news.c: added From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-12-26fix indentFumitoshi UKAI1-2/+2
2002-12-26[w3m-dev 03604] http response code and content-typeFumitoshi UKAI1-3/+6
* file.c (loadGeneralFile): don't guessContentType if http errors From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-12-24[w3m-dev 03595] tolower, toupperFumitoshi UKAI1-4/+4
* Str.c (Strlower): TOLOWER (Strupper): TOUPPER * backend.c: delete ctype.h * etc.c (gethtmlcmd): TOLOWER * file.c (readHeader): TOLOWER (checkOverWrite): TOLOWER (guess_charset): TOLOWER * ftp.c: delete ctype.h * indep.c (strcasecmp): TOLOWER (strncasecmp): TOLOWER (strcasematch): TOLOWER * istream.c: include myctype.h (ssl_get_certificate): TOLOWER * mailcap.c (mailcapMatch): TOLOWER * main.c (_quitfm): TOLOWER * menu.c (accesskey_menu): TOLOWER * mimehead.c: include myctype.h (decodeWord): TOUPPER * mktable.c: delete ctype.h, include myctype.h (main): IS_SPACE * myctype.h: delete ctype.h (TOLOWER): added (TOUPPER): added * parsetagx.c (parse_tag): TOLOWER * rc.c (str_to_bool): TOLOWER (str_to_color): TOLOWER * regex.c: delete ctype.h, include myctype.h (TOLOWER): added (TOUPPER): added (regmatch1): TOLOWER (matchWhich): TOLOWER, TOUPPER From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-12-21* file.c (discardline): not usedFumitoshi UKAI1-14/+1
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-12-21fix indentFumitoshi UKAI1-5/+6
2002-12-21[w3m-dev 03593] Re: segmentation fault when <title> exist after <img>Fumitoshi UKAI1-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>
2002-12-20[w3m-dev 03590] segmentation fault when <title> exist after <img>Fumitoshi UKAI1-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>
2002-12-18fix indentFumitoshi UKAI1-6/+4
2002-12-18[w3m-dev 03578] meta refreshFumitoshi UKAI1-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>
2002-12-14fix indentFumitoshi UKAI1-5/+6
2002-12-14[w3m-dev 03569] Re: preserve timestampFumitoshi UKAI1-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>
2002-12-14[w3m-dev 03568] Re: preserve timestampFumitoshi UKAI1-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>
2002-12-13[w3m-dev 03563] Directory Traversal Vulnerabilities in FTP ClientsFumitoshi UKAI1-10/+8
* file.c (guess_save_name): pass guess_filename From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-12-10[w3m-dev 03551] Re: External URI loaderFumitoshi UKAI1-4/+4
* file.c (loadGeneralFile): fix SCM_UNKNONWN From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-12-09[w3m-dev 03548] close anchor before <img align=...>Fumitoshi UKAI1-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>
2002-12-09[w3m-dev 03544] Can't display "1&2" in tableFumitoshi UKAI1-2/+2
* file.c (HTMLlineproc0): continue -> R_ST_NORMAL From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-12-09* file.c (loadGeneralFile): missing `{', fix indent for SCM_UNKNOWNFumitoshi UKAI1-3/+3
* main.c (set_buffer_environ): unused variables `prev_col' From: Fumitoshi UKAI <ukai@debian.or.jp>
2002-12-09[w3m-dev 03543] External URI loader (Debian closes: Bug#169962)Fumitoshi UKAI1-9/+10
* file.c (loadGeneralFile): rewrite SCM_UNKNOWN From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-12-09[w3m-dev 03542] news supportFumitoshi UKAI1-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>
2002-12-08fix indentFumitoshi UKAI1-5/+9
2002-12-06[w3m-dev 03536] <del>, <s>Fumitoshi UKAI1-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>
2002-12-06[w3m-dev 03535] close anchor, quote <Fumitoshi UKAI1-2/+9
* file.c (HTMLtagproc1): close_anchor * frame.c (createFrameFile): quote < From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-12-06[w3m-dev 03534] cleanup file.cFumitoshi UKAI1-12/+7
* file.c (HTMLlineproc2body): cleanup From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-12-06* version.c.in: w3m/0.3.2.2+cvsFumitoshi UKAI1-3/+3
* NEWS: 0.3.2.2 From: Fumitoshi UKAI <ukai@debian.or.jp>
2002-12-05fix indentFumitoshi UKAI1-3/+3
2002-12-05[w3m-dev 03529] Support of title, accesskey of anchorFumitoshi UKAI1-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>
2002-12-04[w3m-dev 03523] Re: del/insFumitoshi UKAI1-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>
2002-12-04[w3m-dev 03522] newline around <pre>..</pre>Fumitoshi UKAI1-3/+13
* file.c (HTMLtagproc1): break before <pre>/after </pre> if necessary From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-12-03[w3m-dev 03510] waiting time when cookie was rejected.Fumitoshi UKAI1-2/+2
* file.c (readHeader): display cookie warnings for only 1 sec From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-12-03fix indentFumitoshi UKAI1-107/+107
2002-12-03[w3m-dev 03509] HTML parserFumitoshi UKAI1-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>
2002-12-03[w3m-dev 03505] Re: coredump when ssl errorFumitoshi UKAI1-5/+5
* file.c (loadGeneralFile): term_raw(), SIGINT before retry From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-12-02fix indentFumitoshi UKAI1-2/+2
2002-12-02[w3m-dev 03504] coredump when ssl errorFumitoshi UKAI1-1/+5
* file.c (loadGeneralFile): term_raw, SIGINT From: AIDA Shinra <aida-s@jcom.home.ne.jp>
2002-12-02remove ununsed variablesFumitoshi UKAI1-2/+1
* file.c (addLink): unused variable `t' * menu.c (lmGoURL): unused variable `pu' From: Fumitoshi UKAI <ukai@debian.or.jp>
2002-12-02[w3m-dev 03501] link tag supportFumitoshi UKAI1-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>
2002-11-28[w3m-dev 03498] Re: parse <!-- ... --> in <script>Fumitoshi UKAI1-3/+1
* file.c (HTMLlineproc0): tag in textarea * frame.c (createFrameFile): fix comment processing in frame From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-11-27fix indentFumitoshi UKAI1-4/+3
2002-11-27[w3m-dev 03496] parse <!-- ... --> in <script>Fumitoshi UKAI1-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>
2002-11-26use local_cookie for support local-cgi commandsFumitoshi UKAI1-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>
2002-11-26fix indentFumitoshi UKAI1-4/+4
2002-11-26[w3m-dev 03488] meta refresh in frameFumitoshi UKAI1-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>
2002-11-25fix indentFumitoshi UKAI1-8/+8
2002-11-25[w3m-dev 03476] Re: Bug#170506: w3m: Unable to use mozilla bugzillaFumitoshi UKAI1-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>