aboutsummaryrefslogtreecommitdiffstats
path: root/form.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2017-12-26Prevent invalid columnPos() call in formUpdateBuffer()Tatsuya Kinoshita1-0/+2
Bug-Debian: https://github.com/tats/w3m/issues/89
2017-08-23form.c: do not gratuitously turn GET into POSTKyle J. McKay1-3/+2
When encountering a <form ...> tag that contains these values: method="get" enctype="multipart/form-data" Do not transform the method into POST to accomodate enctype. Instead behave in the compatible way that all other browsers behave in this instance and ignore the enctype parameter (treating it as the default application/x-www-form-urlencoded) and perform a "GET" just as the method parameter requests. This behavior produces far more compatible results than gratuitously changing the "get" into a "post" which can result in unexpected "405 Method Not Allowed" errors. Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
2016-12-24Preserve one byte for end of string character in form_update_line()Tatsuya Kinoshita1-1/+2
Bug-Debian: https://github.com/tats/w3m/issues/68#issuecomment-266214643
2016-12-24Prevent invalid form_update_line() call in formUpdateBuffer()Tatsuya Kinoshita1-1/+2
Bug-Debian: https://github.com/tats/w3m/issues/82
2016-12-20Revert "Preserve one byte for end of string character in form_update_line()"Tatsuya Kinoshita1-1/+1
This reverts commit a4152aaaea5cb51c9018880a1295e498c38889bf.
2016-12-17Revert "Prevent overflow beyond the end of string in form_update_line()"Tatsuya Kinoshita1-8/+6
This reverts commit 9ccaa1dd0dac6f9b35a649ae9901c225421500f6.
2016-12-17Revert "Prevent overflow beyond the end of string in form_update_line()"Tatsuya Kinoshita1-1/+1
This reverts commit e0efc127ff20cbeb931847af1c9b353056340fbd.
2016-12-15Revert "Prevent overflow beyond the end of string in textfieldrep()"Tatsuya Kinoshita1-2/+0
This reverts commit 77d8d8d6576d8afc0f6b2e09bb88c7ca9dba58bb.
2016-12-13Prevent overflow beyond the end of string in textfieldrep()Tatsuya Kinoshita1-0/+2
Bug-Debian: https://github.com/tats/w3m/issues/79
2016-12-13Preserve one byte for end of string character in form_update_line()Tatsuya Kinoshita1-1/+1
Bug-Debian: https://github.com/tats/w3m/issues/82 cf. https://github.com/tats/w3m/issues/68#issuecomment-266214643
2016-12-10Prevent overflow beyond the end of string in form_update_line()Tatsuya Kinoshita1-1/+1
Bug-Debian: https://github.com/tats/w3m/issues/78
2016-12-08Prevent overflow beyond the end of string in form_update_line()Tatsuya Kinoshita1-6/+8
Bug-Debian: https://github.com/tats/w3m/issues/75
2016-11-07Prevent dereference near-null pointer in formUpdateBufferTatsuya Kinoshita1-1/+2
Bug-Debian: https://github.com/tats/w3m/issues/35
2016-10-08Fix incorrect dereference in formUpdateBuffer when MENU_SELECTTatsuya Kinoshita1-0/+2
cf. https://github.com/tats/w3m/commit/ec9eb22e008a69ea9dc21fdca4b9b836679965ee
2016-10-07Prevent global-buffer-overflow write in formUpdateBufferTatsuya Kinoshita1-1/+3
Bug-Debian: https://github.com/tats/w3m/issues/29
2016-10-07Fix null pointer dereference in formUpdateBufferTatsuya Kinoshita1-0/+2
Bug-Debian: https://github.com/tats/w3m/issues/28
2016-08-29Prevent segfault for formUpdateBufferTatsuya Kinoshita1-2/+2
Bug-Debian: https://github.com/tats/w3m/issues/13#issuecomment-242981906
2016-08-24Prevent segfault for formUpdateBufferTatsuya Kinoshita1-0/+2
Bug-Debian: https://github.com/tats/w3m/issues/22
2016-08-17Prevent segfault for formUpdateBufferTatsuya Kinoshita1-1/+1
Bug-Debian: https://github.com/tats/w3m/issues/13
2016-08-17Prevent negative array index for selectnumber and textareanumberTatsuya Kinoshita1-2/+6
Bug-Debian: https://github.com/tats/w3m/issues/12
2016-08-15Prevent segfault for formUpdateBufferTatsuya Kinoshita1-0/+2
Bug-Debian: https://github.com/tats/w3m/issues/9 Bug-Debian: https://github.com/tats/w3m/issues/10
2013-04-08Support the siteconf featureTatsuya Kinoshita1-17/+12
Patch to support the siteconf feature, from [w3m-dev 04463] on 2012-06-27, provided by AIDA Shinra.
2012-05-19Assume "text" if an input type is unknownTatsuya Kinoshita1-1/+1
Patch from <http://bugs.debian.org/615843> provided by Hilko Bengen.
2011-05-04Adding upstream version 0.5.3upstream/0.5.3Tatsuya Kinoshita1-1/+2
2011-05-04Adding upstream version 0.5.1upstream/0.5.1Tatsuya Kinoshita1-0/+1055
2010-07-18set line->sizeIto Hiroyuki1-1/+2
2004-02-05[w3m-dev 04038] --disable-m17n problem in form.cFumitoshi UKAI1-1/+4
* form.c (form_update_line): fix for disable-m17n From: MANTANI Nobutaka <nobutaka@nobutaka.com>
2003-09-26add commentsFumitoshi UKAI1-1/+3
2003-09-22merge m17n patchFumitoshi UKAI1-72/+192
add libwc
2003-05-12[w3m-dev 03895] type=image support of pre_formFumitoshi UKAI1-2/+6
* form.c (loadPreFOrm): add image (preFormUpdateBuffer): add FORM_INPUT_IMAGE * doc/README.pre_form: update * doc-jp/README.pre_form: ditto From: Hironori SAKAMOTO <h-saka@lsi.nec.co.jp>
2003-01-29[w3m-dev 03708] Re: Don't stop loading image when moving to next page.Fumitoshi UKAI1-8/+1
* 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-20[w3m-dev 03657] fputs -> StrfputsFumitoshi UKAI1-2/+3
* form.c (form_fputs_decode): use Strfputs() From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-15[w3m-dev 03640] Re: cleanup (don't close connection of news server)Fumitoshi UKAI1-8/+3
* anchor.c (_put_ahchor_news): always conv_str (_put_anchor_all): always conv_str * etc.c (close_all_fds): deleted (close_all_fds_except): added, except fd=f is left open * file.c (guess_filename): added (UFhalfclose): added (convertLine): cleanup_line if not raw mode check uf (readHeader): always convertLine (loadGeneralFile): rewrite (loadGopherDir): return Str, args change to ParsedURL and code rewrite (saveBuffer): always conv_str (_doFileCopy): close_all_fds (doFileSave): close_all_fds_except (uncompress_stream): dup, close_all_fds_except * form.c (form_fputs_decode): always conv_str (input_textarea): convertLine * frame.c (createFrameFile): convertLine * ftp.c (loadFTPDir): arg code rewrite (readFTPDir): convertLine * html.h (UFfileno): added * image.c (loadImage): close_all_fds * indep.h (RAW_MODE): added * local.c (loadLocalDir): return Str (dirBuffer): rewrite (localcgi_popen_r): close_all_fds * main.c (main): check SCM_LOCAL print err_msg * news.c (news_command): args cmd and arg (news_quit): news_command (openNewsStream): news_command (readNewsgroup): deleted (loadNewsgroup): added (closeNews): added * proto.h (loadGopherDir): update (conv_str): define for no JP_CHARSET (readFTPDir): deleted (loadFTPDir): added (readNewsgroup): deleted (loadNewsgroup): added (dirBuffer): deleted (loadLocalDir): added (close_all_fds): defined by close_all_fds_except (close_all_fds_except): added From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-10[w3m-dev 03631] display current form itemFumitoshi UKAI1-13/+16
* form.c (form2str): rewrite * istream.c (ssl_get_certificate): fix typo * map.c (follow_map_panel): valign=top (append_map_info): valign=top (append_link_info): valign=top (append_frame_info): <pre_int> html_quote ssl_certificate (page_info_panel): rewrite, html_quote From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-10[w3m-dev 03630] improved pre_formFumitoshi UKAI1-11/+62
* form.c (pre_form): add re_url, name (add_pre_form): add name rewrite (loadPreForm): add "form" (preFormUpdateBuffer): handle re_url From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-12-03[w3m-dev 03509] HTML parserFumitoshi UKAI1-11/+1
* 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-11-15[w3m-dev 03442] Re: setting form on loadingFumitoshi UKAI1-2/+5
* form.c (preFormUpdateBuffer): ifdef MENU_SELECT From: Fumitoshi UKAI <ukai@debian.or.jp>
2002-11-15[w3m-dev 03431] save file by background processFumitoshi UKAI1-1/+2
* file.c (loadGeneralFile): use _doFileCopy() (_doFileCopy): renamed from doFileCopy() lock fork & save (doFileSave): lock fork & save * fm.h (DownloadList): added (FirstDL): added (LastDL): added * form.c (struct internal_action): add download * funcname.tab (DOWNLOAD_LIST): added * html.h (URLFile): add url * main.c (dump_extra): add add_download_list (main): add_download_list, ldDL() (_quitfm): added (quitfm): rewrite with _quitfm() (qquitfm): ditto (w3m_exit): stopDownload() (addDownloadList): added (checkDownloadList): added (convert_size3): added (DownloadListBuffer): added (download_action): added (stopDownload): added (ldDL): added * proto.h (ldDL): added (convert_size): added (convert_size2): added (doFileCopy): deleted (_doFileCopy): added (addDownloadList): added (stopDownload): added (checkDownloadList): added (download_action): added * url.c (openURL): save url in uf From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-11-12[w3m-dev 03422] Re: setting form on loadingFumitoshi UKAI1-3/+4
* form.c (loadPreForm): initialize name check textarea, name for /textarea From: Fumitoshi UKAI <ukai@debian.or.jp>
2002-11-12fix indentFumitoshi UKAI1-2/+2
2002-11-12[w3m-dev 03413] Re: setting form on loadingFumitoshi UKAI1-7/+50
* form.c (loadPreForm): add textarea (preFormUpdateBuffer): submit if value is matched as well case FORM_TEXTAREA case FORM_SELECT ifdef MENU_SELECT From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-11-08[w3m-dev 03390] some fixes related with formFumitoshi UKAI1-3/+4
* form.c (input_textarea): goto input_end unlink(tmpf); * main.c (_followForm): s/TEXT/Password/ From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-11-06[w3m-dev 03377] sync_with_optionFumitoshi UKAI1-4/+3
* etc.c (loadPassword): reset passwords * form.c (loadPreForm): reset PreForm * main.c (option_assigned): deleted (parse_proxy): deleted (MAIN): move initCookie(), setLocalCookie() after sync_with_option() delete parseURL for *_proxy s/WrapSearch/WrapDefault/ move initKeymap(), initMenu() after setupscreen() sync_with_option() after init_rc() * rc.c (pre_form_file): move in params9 (network settting) (sync_with_option): initKeymap(), initMenu() is done if fmInitialized (init_rc): delete sync_with_option() From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-11-05fix indentFumitoshi UKAI1-17/+19
2002-11-05* etc.c (PASS_IS_READABLE_MSG): deletedFumitoshi UKAI1-6/+2
(FILE_IS_READABLE_MSG): added (openPasswdFile): deleted (openSecretFile): delete error_msg arg (loadPasswd): use openSecretFile() * form.c (next_token): delete unused static decl (FILE_IS_READABLE_MSG): deleted (loadPreForm): no need pass error_msg * proto.h (openSecretFile): delete error_msg arg From: Fumitoshi UKAI <ukai@debian.or.jp>
2002-11-05[w3m-dev 03373] setting form on loadingFumitoshi UKAI1-1/+191
* config.h.dist (PRE_FORM_FILE): added * configure (PRE_FORM_FILE): added * etc.c (openPasswdFile): define by openSecretFile() (openSecretFile): renamed, not static * file.c (loadGeneralFile): preFOrmUpdateBuffer() * fm.h (Buffer): add submit (pre_form_file): added * form.c (struct pre_form_item): added (struct pre_form): added (next_token): added (PreForm): added (add_pre_form): added (add_pre_form_item): added (loadPreForm): added (preFormUpdateBuffer): added * frame.c (renderFrame): add preFormUpdateBuffer() * main.c (MAIN): buf->submit check * proto.h (preFormUpdateBuffer): added (openSecretFile): added (loadPreForm): added * rc.c (sync_with_option): add loadPreForm() From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-06-17[w3m-dev 03212] lstat() in form.cFumitoshi UKAI1-5/+3
* form.c: define lstat unless HAVE_LSTAT (form_write_from_file): always check lstat() From: Kiyokazu SUTO <suto@ks-and-ks.ne.jp>
2002-02-25[w3m-dev 03064] Re: SELECTED form valueFumitoshi UKAI1-1/+8
* form.c (formResetBuffer): set inititial value From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
2002-02-04[w3m-dev 02984] inline image improvements and cleanupsFumitoshi UKAI1-3/+3
* config.h.dist (HAVE_SYMLINK) added * config.h.dist (HAVE_LSTAT): added * configure: symlink() check * configure: lstat() check * fm.h (maxLoadImage): added * form.c (form_write_from_file): s/HAVE_READLINK/HAVE_LSTAT/ * image.c: include <sys/stat.h> * image.c (MAX_LOAD_IMAGE): default 8 * image.c (max_load_image): deleted * image.c (n_load_image): added * image.c (showImageProgress): added * image.c (loadImage): check load image count s/HAVE_READLINK/HAVE_LSTAT/ (HAVE_SYMLINK) showImageProgress * local.c: include <sys/stat.h> s/HAVE_READLINK/HAVE_LSTAT/ * rc.c (CMT_MAX_LOAD_IMAGE): added * rc.c (max_load_image): added * doc/README.img: update * doc-jp/README.img: update * file.c (process_img): pre_int fix From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
2001-12-27[w3m-dev 02772]Fumitoshi UKAI1-2/+2
From: Fumitoshi UKAI <ukai@debian.or.jp>