aboutsummaryrefslogtreecommitdiffstats
path: root/file.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2004-04-16[w3m-dev 04064] authenticationFumitoshi UKAI1-71/+79
closes: Bug#:244029: w3m: HTTP basic authentication annoyance * fm.h (auth_cookie): deleted * proto.h (find_auth_cookie): deleted (add_auth_cookie): deleted (add_auth_user_passwd): added (invalidate_auth_user_passwd): added * etc.c (auth_pass): add bad flag delete file (dir_under): deleted (add_auth_pass_entry): add override flag no need to check file (find_auth_pass_entry): delete file check bad flag check uname (find_auth_user_passwd): find by pu->user (add_auth_user_passwd): added (invalidate_auth_user_passwd): added (parsePasswd): add no override ignore file (find_auth): deleted (find_auth_cookie): deleted (dump_auth_cookie): deleted (add_auth_cookie): deleted * file.c (getAuthCookie): add *uname, *pwd rewrite (loadGeneralFile): delete ss, add uname, pwd use add_auth_user_passwd instead of add_auth_cookie * url.c (HTTPrequest): don't authorization here it should be done in getAuthCookie in loadGeneralFile through extra_header * ftp.c (openFTPStream): add uname use find_auth_user_passwd instead of find_auth_cookie use add_auth_user_passwd instead of add_auth_cookie
2003-12-08[w3m-dev 04021] Deeply nested tableFumitoshi UKAI1-1/+4
* file.c (completeHTMLstream): check obuf->table_level From: Kiyokazu SUTO <suto@ks-and-ks.ne.jp>
2003-10-22[w3m-dev 04009] ./configure --disable-image problemFumitoshi UKAI1-2/+2
* file.c (loadHTMLstream): if defined(USE_M17N) From: ABE Yuji <cbo46560@pop12.odn.ne.jp>
2003-10-21OpenLDAP¤ÈActive Directory¤¬µÕ?Fumitoshi UKAI1-4/+2
2003-10-08[w3m-dev 03985] Re: support for 307 Temporary RedirectFumitoshi UKAI1-2/+7
* file.c (loadGeneralFile): support 307 Temporary Redirect From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-10-05fix build error --disbable-m17nFumitoshi UKAI1-14/+10
* config.h.in: undef USE_M17N, USE_UNICODE * etc.c (url_unquote_conv): USE_M17N * file.c (convertLine): USE_M17N (loadHTMLStream): fix ifdef USE_IMAGE->USE_M17N (loadBuffer): fix USE_M17N (getNextPage): fix USE_M17N * fm.h (USE_M17N): don't define USE_M17N in case LANG == JA (this should be done by configure) (wc_ces): dummy typedef (wc_Str_conv): fix non-m17n macro args (wc_Str_conv_strict): ditto * ftp.c (loadFTPDir): fix undefined USE_M17N * mimehead.c (decodeWord): ditto (decodeMIME): ditto * news.c (loadNewsgroup): ditto * proto.h (convertLine): ditto (loadGopherDir): ditto (loadFTPDir): ditto (loadNewsgroup): ditto (decodeWord): ditto (decodeMIME): ditto (url_unquote_conv): ditto * terms.c (SETCH): ditto From: Fumitoshi UKAI <ukai@debian.or.jp>
2003-09-26add commentsFumitoshi UKAI1-1/+33
2003-09-24fix indentFumitoshi UKAI1-119/+119
2003-09-22merge m17n patchFumitoshi UKAI1-523/+562
add libwc
2003-08-29[w3m-dev 03957] Location: from local-CGIFumitoshi UKAI1-2/+2
* file.c (loadGeneralFile): don't parse header for local file redirected by Location: from local-CGI From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-07-07[w3m-dev 03927] deflateFumitoshi UKAI1-2/+2
* file.c (compression_decoder): .deflate for application/x-deflate's extension From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-05-13[w3m-dev 03901] body with status-code 401Fumitoshi UKAI1-5/+3
* file.c (loadGeneralFile): show page when 401, 407 From: ABE Yuji <cbo46560@pop12.odn.ne.jp>
2003-04-18[w3m-dev 03882] Re: Bug#189460: w3m: <q> tag is not recognizedFumitoshi UKAI1-1/+7
* file.c (HTMLtagproc1): add HTML_Q, HTML_N_Q * html.c (TagMAP): add "q", "/q" * html.h (HTML_Q): added (HTML_N_Q): added * tagtable.tab: add q, /q From: Fumitoshi UKAI <ukai@debian.or.jp>
2003-04-14[w3m-dev 03875] Re: SSL & compressed streamFumitoshi UKAI1-2/+3
* file.c (loadGeneralFile): check t_buf != NULL * url.c (openURL): don't initialize URLFile here (init_stream): 0 clear URLFile From: Fumitoshi UKAI <ukai@debian.or.jp>
2003-04-13[w3m-dev 03873] SSL & compressed streamFumitoshi UKAI1-3/+2
* file.c (loadGeneralFile): always update ssl_certificate * url.c (openURL): initialize URLFile From: Fumitoshi UKAI <ukai@debian.or.jp>
2003-04-06[w3m-dev 03843] cleanup macrosFumitoshi UKAI1-3/+1
* config.h.dist config.h.in etc.c file.c fm.h ftp.c linein.c main.c rc.c: delete EMACS_LIKE_LINEEDIT, VI_PREC_NUM, LABEL_TOPLINE, NEXTPAGE_TOPLINE, FTPPASS_HOSTNAMEGEN use_mark default FALSE emacs_like_lineedit default FALSE vi_prec_num default FALSE add UseHistory, use_history * NEWS: rc: use_history From: Fumitoshi UKAI <ukai@debian.or.jp>
2003-03-02[w3m-dev 03788] UFhalfcloseFumitoshi UKAI1-2/+2
* file.c (UFhalfclose): closeNews() for SCM_NEWS,NNTP From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-02-06[w3m-dev 03735] Re: make error of checkType argFumitoshi UKAI1-62/+23
* etc.c (checkType): delete USE_ANSI_COLOR * file.c (addnewline): macro for USE_ANSI_COLOR (readHeader): rewrite of USE_ANSI_COLOR (HTMLlineproc2body): ditto (addnewline2): ditto (addnewline): ditto (loadBuffer): ditto (getNextPage): ditto * proto.h (checkType): macro for USE_ANSI_COLOR From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-30[w3m-dev 03719] Re: Too slow when loading big file with fold_line=1Fumitoshi UKAI1-2/+2
* file.c (addnewline): check i <l->len From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-30[w3m-dev 03718] Too slow when loading big file with fold_line=1Fumitoshi UKAI1-18/+4
* etc.c (nextColumn): added (calcPosition): use New_N rewrite with nextColumn (columnLen): added * file.c (addnewline): rewrite with columnLen * proto.h (columnLen): added From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-30[w3m-dev 03715] initial currentLine when pager mode.Fumitoshi UKAI1-2/+2
* file.c (getNextPage): fix cur From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-30[w3m-dev 03714] -cols 1 -dump -o fold_line=1Fumitoshi UKAI1-1/+10
* file.c (addnewline): check i == 0, i == l->len * fm.h (_INIT_BUFFER_WIDTH): added (INIT_BUFFER_WIDTH): use _INIT_BUFFER_WIDTH From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-29[w3m-dev 03709] Re: view source, edit sourceFumitoshi UKAI1-4/+19
* display.c (displayBuffer): INIT_BUFFER_WIDTH * file.c (_saveBuffer): added (saveBuffer): use _saveBuffer (saveBufferBody): added * main.c (vmSrc): saveBufferBody * proto.h (saveBufferBody): added From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-29fix indentFumitoshi UKAI1-4/+4
2003-01-29[w3m-dev 03708] Re: Don't stop loading image when moving to next page.Fumitoshi UKAI1-98/+34
* config.h.dist (lstat): define ifndef HAVE_LSTAT * configure (config.h) ditto * display.c (fmTerm): new loadImage (save_current_buf): only ifdef USE_BUFINFO (displayBuffer): new loadImage * etc.c (setup_child): TrapSignal * file.c (loadGeneralFile): TRAP_OFF, TRAP_ON (loadHTMLstream): ditto (loadGopherDir): ditto (loadBuffer): ditto (loadImageBuffer): ditto (getNextPage): ditto (save2tmp): ditto * fm.h (TrapSignal): added (TRAP_ON): added (TRAP_OFF): added * form.c (HAVE_LSTAT): deleted * frame.c (createFrameFile): TRAP_OFF, TRAP_ON * image.c (image_buffer): added (deleteImage): new loadImage (getAllImage): initialize image_buffer (loadImage): rewrite * main.c (main): new loadImage (checkDownloadList): remove ifdef HAVE_LSTAT * news.c (loadNwesgroup): TRAP_ON, TRAP_OFF * proto.h (loadImage): add buf arg * url.c (openSocket): TRAP_ON, TRAP_OFF (check_no_proxy): TRAP_ON, TRAP_OFF From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-28[w3m-dev 03706] X-Image-URL: support, bug fix of reshapeBuffer()Fumitoshi UKAI1-17/+27
* buffer.c (reshapeBuffer): rewrite * file.c (readHeader): rewrite From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-24fix indentFumitoshi UKAI1-2/+2
2003-01-24[w3m-dev 03684] Re: fold patchFumitoshi UKAI1-8/+11
* file.c (PSIZE): added (HTMLlineproc2body): outc,outp is created by NewAtom_N use PSIZE From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-24file.c (getNextPage): no need volatile for codeFumitoshi UKAI1-2/+2
From: Fumitoshi UKAI <ukai@debian.or.jp>
2003-01-24fix indentFumitoshi UKAI1-3/+3
2003-01-24[w3m-dev 03683] interrupt in getNextPage()Fumitoshi UKAI1-8/+20
* file.c (getNextPage): trap SIGINT From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-23fix indentFumitoshi UKAI1-7/+7
2003-01-23[w3m-dev 03667] fold patchFumitoshi UKAI1-112/+166
* anchor.c (reAnchorPos): rewrite (reAnchorWord): delete reseq_anchor() (reAnchorAny): use l->size delete reseq_anchor() * backend.c (internal_get): pass TRUE to saveBuffer * buffer.c (newBuffer): delete n->linelen (reshapeBuffer): rewrite * display.c (displayBuffer): FoldLine (redrawLine): l->bpos (cursorUp0): added (cursorUp): rewrite (cursorDown0): added (cursowDown): rewrite (cursorRight): check l->next l->bwidth (cursorLeft): l->prev && l->bpos l->bwidth (arrangeCursor): buf->currentLine->bwidth buf->cursorX * etc.c (checkType): **oporp rewrite (calcPosition): realColumn allocated by New_reuse * file.c (addnewline): add nlines arg (propBuffer): deleted (colorBuffer): deleted (readHeader): propBuffer FOLD_BUFFER_WIDTH (HTMLlineproc2body): rewrite (addnewline2): added (addnewline): rewrite (loadBuffer): propBuffer, colorBuffer (saveBuffer): cont arg (getNextPage): rewrite * fm.h (LINELEN): 256 (FNLEN): deleted (Line): add size, bpos, bwidth (Buffer): delete linelen (INIT_BUFFER_WIDTH): check showLineNum (FOLD_BUFFER_WIDTH): added (FoldLine): added * funcname.tab (RESHAPE): added * main.c (do_dump): pass FALSE to saveBuffer (nscroll): rewrite (clear_mark): l->size (shiftvisualpos): rewrite (pipeBuf): pass TRUE to saveBuffer (linebeg): check line->prev && line->bpos (linend): check line->next, line->next->bpos (editScr): pass TRUE to saveBuffer (svBuf): pass TRUE to saveBuffer (vmSrc): pass TRUE to saveBuffer (reshape): added (curlno): rewrite * mimehead.c (LINELEN): deleted * proto.h (reshape): added (saveBuffer): add cont arg (cursorUp0): added (cursorDown0): added (checkType): change type oprop, ocolor, delete check_color, len * rc.c (CMT_FOLD_LINE): added (params1): add fold_line (sync_with_option): check PagerMax * search.c (set_mark): l->size (forwardSearch): rewrite (backwardSearch): rewrite * doc/README.func (RESHAPE): added * doc-jp/README.func (RESHAPE): added * scripts/w3mhelp.cgi.in (Buffer operation): add reshape From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-23[w3m-dev 03680] showProgress() on fast systemFumitoshi UKAI1-8/+10
* file.c (showProgress): check line len, time From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-23[w3m-dev 03679] Re: cleanup for pipeFumitoshi UKAI1-10/+16
* etc.c (open_pipe_rw): check stdin, stdout * file.c (uncompress_stream): rewrite From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-22[w3m-dev 03677] view source, edit sourceFumitoshi UKAI1-8/+1
* buffer.c (discardBuffer): unlink header source * file.c (loadFile): delete skip header * fm.h (BP_SOURCE): deleted (SkipHeader): deleted * main (editBf): cleanup (vmSrc): cleanup From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-22fix indentFumitoshi UKAI1-2/+2
2003-01-22[w3m-dev 03676] cleanup for pipeFumitoshi UKAI1-66/+42
* etc.c (open_pipe_rw): added * file.c (uncompress_stream): rewrite using open_pipe_rw * image.c (openImgdisplay): rewrite using open_pipe_rw * local.c (localcgi_popen_rw): deleted (localcgi_post): rewrite using open_pipe_rw * proto.h (open_pipe_rw): added * search.c (migemor): initialized to NULL (migemow): initialized to NULL (migemo_pid): initialized to 0 (open_migemo): rewrite using open_pipe_rw From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-22[w3m-dev 03675] x-faceFumitoshi UKAI1-35/+44
* file.c (xface2xpm): use getImage() (readHeader): check same file (loadImageBuffer): rewrite (lessopen_stream): shell_quote() From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-22[w3m-dev 03674] -dump problemFumitoshi UKAI1-1/+3
* file.c (loadGeneralFile): return NULL when dump * main.c (dump_source): deleted (dump_head): deleted (dupm_extra): deleted (do_dump): added (main): singal when dump From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-20fix indentFumitoshi UKAI1-5/+5
2003-01-20[w3m-dev 03660] Re: fputs -> StrfputsFumitoshi UKAI1-3/+5
* Str.h (Strncmp_charp): paren (Strncasecmp_charp): ditto (Strinsert): ditto (Strshrinkfirst): ditto * display.c (disp_err_message): added * file.c (loadGeneralFile): don't put function in macro arg (saveBuffer): ditto * frame.c (createFrameFile): ditto * proto.h (disp_err_message): macro->function * table.c (pushdata): if data is NULL, use "" (suspend_or_pushdata): if line is NULL, use "" * textlist.h (pushText): don't use (s) twice in a macro From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-19[w3m-dev 03654] file.c:image_source when undef USE_IMAGEFumitoshi UKAI1-3/+13
* file.c (readHeader): image_source ifdef USE_IMAGE (loadGeneralFile): ditto (uncompress_stream): ditto From: WATANABE Katsuyuki <knabe@sannet.ne.jp>
2003-01-17fix indentFumitoshi UKAI1-2/+2
2003-01-17[w3m-dev 03652] Re: Debian bug #176981Fumitoshi UKAI1-4/+3
* file.c (checkHeader): always remove_space (loadGeneralFile): no need remove_space From: Fumitoshi UKAI <ukai@debian.or.jp>
2003-01-17[w3m-dev 03651] Debian bug #176981Fumitoshi UKAI1-53/+69
* file.c (checkRedirection): added (loadGeneralFile): check redirection t_buf only is created when it is NULL remove_space From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-17[w3m-dev 03647] expandName() and expandPath()Fumitoshi UKAI1-4/+4
* etc.c (openSecretFile): use expandPath (expandName): rewrite (file_to_url): use expandPath * file.c (_doFileCopy): use expandPath (doFileSave): use expandPath * indep.c (expandPath): rewrite * linein.c (inputLineHistSearch): use expandPath (next_dcompl): use expandPath (doComplete): use expandPath * local.c (set_cgi_environ): rewrite * mailcap.c (loadMailcap): use expandPath * main.c (svBuf): use expandPath (addDownloadList): use expandPath * rc.c (init_rc): use expandPath (rcFile): rewrite (auxbinFile): use expandPath (libFile): use expandPath (etcFile): use expandPath (helpFile): use expandPath * url.c (loadMimeTypes): use expandPath (loadURIMethods): use expandPath From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-17[w3m-dev 03646] setup child process, local CGIFumitoshi UKAI1-28/+9
* etc.c (reset_signals): static don't ignore SIGUSR1 (close_all_fds_except): static DEV_NULL_PATH (setup_child): added (myExec): rewrite (mySystem): rewrite * file.c (readHeader): check image_source (loadGeneralFile): check image_source (doExternal): use setup_child (_doFileCopy): use setup_child (doFileSave): use setup_child (uncompress_stream): check image_source use setup_child * image.c (getCharSize): no need stderr redirect (openImgdisplay): use setup_child (loadImage): use setup_child (getImageSize): no need stderr redirect * local.c (writeLocalCookie): check Local_cookie_file (localcgi_popen_rw): added (localcgi_popen_r): deleted (localcgi_post): rewrite (localcgi_get): deleted * proto.h (localcgi_get): defined by localcgi_post (reset_signals): deleted (close_all_fds_except): deleted (close_all_fds): deleted (setup_child): added * search.c (open_migemo): use setup_child, myExec * w3mimgdisplay.c (main): use DEV_NULL_PATH From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-15[w3m-dev 03644] Re: Other user can see local cookie.Fumitoshi UKAI1-5/+3
* cookie.c (save_cookies): return if no_rc_dir * etc.c (tmpf_base): add cookie (tmpfname): use tmp_dir instead of rc_dir * file.c (loadGeneralFile): cookie is not passed via URL * fm.h (TMPF_COOKIE): incl (MAX_TMPF_TYPE): incl (no_rc_dir): added (tmp_dir): added (config_file): added * local.c (Local_cookie_file): added (writeLocalCookie): added (setLocalCookie): dont set environment LOCAL_COOKIE (localcgi_post): writeLocalCookie (localcgi_get): writeLocalCookie * main.c (config_filename): deleted (cmd_loadURL): arg FormList (main): rewrite config_file, rc (ldhelp): no cookie in URL (cmd_loadURL): arg FormList (goURL0): cmd_loadURL change (cmd_loadBuffer): cmd_loadURL change (adBmark): cookie is posted (follow_map): cmd_loadURL change (linkMn): cmd_loadURL change (reinit): init_rc change * proto.h (create_option_search_table): deleted (init_rc): no args * rc.c (create_option_search_table): static (init_rc): no args rewrite (optionpanel_src1): rewrite (load_option_panel): html_quote (panel_set_option): no_rc_dir * w3mbookmark.c: rewrite * w3mhelperpanel.c: rewrite * scripts/dirlist.cgi.in: rewrite * scripts/w3mhelp.cgi.in: rewrite * scripts/w3mmail.cgi.in: rewrite * scripts/multipart/multipart.cgi.in: rewrite From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-15* file.c (loadGopherDir): convertLine RAW_MODEFumitoshi UKAI1-17/+19
* ftp.c (loadFTPDir): ditto * fix indent From: Fumitoshi UKAI <ukai@debian.or.jp>