aboutsummaryrefslogtreecommitdiffstats
path: root/fm.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2020-09-01Space is now entered in URL fields instead of triggering file completion, ↵bptato1-0/+1
old behavior can be toggled via options
2020-08-25In HTML5 anchors should not be closed when encountering divs, for example, ↵Ambrose Li1-1/+2
but should be closed when encountering buttons, for example. Many sites that use HTML5-style anchors end up having links displayed with zero-length link texts. The proposed patch correct this behaviour by detecting whether the document is HTML5, then suppressing the close-anchor action in CLOSE_A if it's an HTML5 document. A new macro handles the HTML5-specific cases where anchors are not already always closed. This also fixes a bug in the tokenizing FSM in etc.c that prevented the !doctype element from being recognized; the fix is necessary because HTML5 detection depends on checking the !doctype element.
2020-08-24Cleaned version of 20200823_q branch. Changes the behaviour of the q tag ↵Ambrose Li1-0/+1
(when m17n and Unicode are configured) to use "smart" quotes if the display charset can handle them. Falls back to old behaviour (ASCII quotes with left/right quote semantics for 6/0 and 2/6) if display charset is us-ascii. Also changes the behaviour of conv_entity() to convert left/right quotes and some dashes because named entities are needed for the new code for the q tag.
2019-06-30Allow setting User Agent in SiteconfAzure1-1/+3
Since Google gives usable search results to Lynx but not to w3m, and many other sites block Lynx but /not/ w3m, we want to be able to set the User Agent string on a per-site basis.
2019-04-21Allow to override UserAgentLaurent Arnoud1-0/+1
Adding on command line the user agent add a duplicate header: ``` ./w3m -header "User-Agent: Mozilla" http://localhost:9999 GET / HTTP/1.0 User-Agent: w3m/0.5.3+git20190105 Accept: text/html, text/*;q=0.5, image/*, application/*, message/*, x-scheme-handler/*, audio/*, video/*, inode/* Accept-Encoding: gzip, compress, bzip, bzip2, deflate Accept-Language: en;q=1.0 Host: localhost:9999 Pragma: no-cache Cache-control: no-cache User-Agent: Mozilla ``` As a result most server will take the first given; the default w3m_version or the one defined on config `user_agent` With this patch we can now override `User-Agent` from command line
2016-11-14Prevent array index out of bounds for symbolTatsuya Kinoshita1-0/+1
Bug-Debian: https://github.com/tats/w3m/issues/38
2016-10-30Set use_dictcommand to 1 by defaultTatsuya Kinoshita1-1/+1
2016-07-18Set default_url to 1 by defaultTatsuya Kinoshita1-1/+1
2016-03-13Add extbrowser4, extbrowser5, ..., and extbrowser9Tatsuya Kinoshita1-0/+6
2015-11-18Accept cookies by defaultTatsuya Kinoshita1-3/+3
2015-11-18Set argv_is_url to 1 by defaultTatsuya Kinoshita1-1/+1
Bug-Arch: https://bugs.archlinux.org/task/47102
2015-02-02New option "display_borders" to display 0 pixel table borders.Tatsuya Kinoshita1-0/+1
cf. http://d.hatena.ne.jp/rubikitch/20101120
2014-12-06Add -sixel option which supports image processing by img2sixel.Araki Ken1-1/+1
2014-12-06- Adjust the image size to the terminal cell size. - If the image size is ↵Araki Ken1-0/+2
specified in html source, skip to load the image.
2014-12-06Support remote image by OSC 5379 show_picture sequence.Araki Ken1-0/+3
2014-12-06Change the default to alt_entity=0Olaf Hering1-1/+1
change the default for the option "Use ASCII equivalents to display entities" from YES to NO. Origin: https://build.opensuse.org/package/view_file/openSUSE:Factory/w3m/w3m-0.5.1-no-ASCII-equivalents-by-default.patch?expand=1 Bug-Novell: https://bugzilla.novell.com/show_bug.cgi?id=247397
2014-10-15Disable SSLv3 by default [CVE-2014-3566]Tatsuya Kinoshita1-1/+1
cf. https://blog.mozilla.org/security/2014/10/14/the-poodle-attack-and-the-end-of-ssl-3-0/
2014-10-15Force ssl_verify_server on and disable SSLv2 supportLudwig Nussel1-2/+2
Origin: http://www.openwall.com/lists/oss-security/2010/06/14/4
2013-10-14Workaround of GC crash on Cygwin64AIDA Shinra1-2/+4
Patch from <http://www.j10n.org/files/w3m-cvs-1.1055-win64gc.patch>, [w3m-dev:04469] on 2013-10-14.
2013-04-08Support the siteconf featureTatsuya Kinoshita1-0/+13
Patch to support the siteconf feature, from [w3m-dev 04463] on 2012-06-27, provided by AIDA Shinra.
2011-06-19Support the button element as defined in HTML 4.01Tatsuya Kinoshita1-0/+9
Patch from upstream, [w3m-dev 04411] on 2010-09-17, to support the button element. It is discussed upstream and incomplete, but enough to login Launchpad.
2011-05-04Adding upstream version 0.5.3upstream/0.5.3Tatsuya Kinoshita1-5/+21
2011-05-04Adding upstream version 0.5.2upstream/0.5.2Tatsuya Kinoshita1-9/+35
2011-05-04Adding upstream version 0.5.1upstream/0.5.1Tatsuya Kinoshita1-0/+1165
2010-08-20Introduce option mailto_optionsIto Hiroyuki1-1/+7
2010-08-08[w3m-dev 04360] Re: "important" bugs from bugs.debian.orgIto Hiroyuki1-1/+4
2010-08-04fix conditions for UseGraphicCharIto Hiroyuki1-2/+5
2010-08-03* register user name and password for proxy authentication.Ito Hiroyuki1-3/+1
* remove option -pauth
2010-07-26* [w3m-dev 04237] [patch] cookie avoid [wrong number of dots]Ito Hiroyuki1-1/+3
2010-07-25* merge ambiguous width patchIto Hiroyuki1-5/+2
* http://www.j10n.org/files/w3m-cvs-1.914-ambwidth.patch
2010-07-19* [w3m-dev 04321] Re: w3m's bugs from bugs.debian.orgIto Hiroyuki1-1/+2
* http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=329862#20 * table.c (feed_table_tag): check displayLinkNumber. * proto.h: add getLinkNumberStr(). * main.c (do_dump): check displayLinkNumber. * fm.h: add global variable displayLinkNumber. * file.c (getLinkNumberStr): added. (process_input, process_select, HTMLtagproc1): check displayLinkNumber.
2010-07-19* [w3m-dev 04321] Re: w3m's bugs from bugs.debian.orgIto Hiroyuki1-1/+2
* http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=329863#8 * rc.c: Introduce option pseudo_inlines. * fm.h: add global variable pseudoInlines. * file.c (process_img): check q.
2010-07-19* [w3m-dev 04321] Re: w3m's bugs from bugs.debian.orgIto Hiroyuki1-2/+5
* http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=261174#10 * terms.c (graph_ok): check UseGraphicChar is GRAPHIC_CHAR_ALL or not. * symbol.c (get_symbol): check UseGraphicChar. * rc.c (graphic_char_str): added. * main.c (sig_chld): use GRAPHIC_CHAR_ASCII and GRAPHIC_CHAR_ALL. * fm.h (GRAPHIC_CHAR_ASCII, GRAPHIC_CHAR_CHARSET, GRAPHIC_CHAR_ALL): added. * fm.h: UseGraphicChar is initialized as GRAPHIC_CHAR_ASCII.
2010-07-19* [w3m-dev 04321] Re: w3m's bugs from bugs.debian.orgIto Hiroyuki1-2/+3
* http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=185006#22 * main.c (sig_chld): save exit code to d->err. (addDownloadList): initialize d->running and d->err. (DownloadListBuffer): check d->err. * fm.h (_DownloadList): add running and err. * file.c (save2tmp): check returned value of Strfputs(). (doFileSave): exit code is depend on the returned value of save2tmp().
2010-07-19* [w3m-dev 04238] [patch] simple preserve spaceIto Hiroyuki1-1/+2
* rc.c: Introduce option simple_preserve_space. * fm.h: add global variable SimplePreserveSpace. * file.c (HTMLlineproc0): check SimplePreserveSpace.
2007-05-30fix for tab browsing. [w3m-dev 04266]Dai Sato1-1/+8
2007-05-23[w3m-dev 04236] expand display_ins_del to select a type of fontify.Dai Sato1-5/+16
2007-05-23[w3m-dev 04240] nl_langinfo() requires setlocale()Dai Sato1-2/+2
2007-04-19display <em> and <i> elements with underline. [w3m-dev 04197]Dai Sato1-2/+2
2006-12-10[w3m-dev 04185] display <em> and <i> elements with bold letters.Dai Sato1-3/+7
2006-12-10[w3m-dev 04184] automatic uncompression in downloadingDai Sato1-1/+2
2006-12-10add LiveHTTPHeaders-like option: -reqlog.Dai Sato1-2/+2
2006-04-08check A tag in HTMLlineproc2body().Dai Sato1-1/+2
2006-04-07Introduce option show_cookie and set it TRUE by default.Dai Sato1-1/+2
2006-04-07rewind to 10 Feb 2006.Dai Sato1-3/+2
2006-04-05apply multiple patches on w3m-dev(-en) ML since Jun 2005 to Jan 2006.Dai Sato1-2/+3
2004-07-15[w3m-dev 04093] bookmark charsetFumitoshi UKAI1-1/+2
* add global variable: BookmarkCharset. * main.c:adBmark(): remove condition LANG = JA. * main.c: buffername encode by BookmarkCharset when add bookmark. * main.c: BookmarkCharset pass to w3mbookmark. * w3mbookmark.c: ditto. From: WATANABE Katsuyuki <knabe@sannet.ne.jp>
2004-07-15[w3m-dev 04092] remove __CYGWIN__ && LANG == JAFumitoshi UKAI1-4/+4
* remove condition LANG == JA && __CYGWIN__ * cygwin_mouse_btn_swapped enabled when before 1.5.x From: WATANABE Katsuyuki <knabe@sannet.ne.jp>
2004-04-16[w3m-dev 04064] authenticationFumitoshi UKAI1-10/+1
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-10-05fix build error --disbable-m17nFumitoshi UKAI1-6/+5
* 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>