Commit Graph

45 Commits

Author SHA1 Message Date
Robert Alm Nilsson
0189e8aa5c Only read title when in head
Before this change, it was possible that w3m would interpret a title tag
under e.g. an svg tag as the page title.
2023-01-06 23:36:06 +09:00
Tatsuya Kinoshita
57b6c8ecd1 Merge pull request #251 from nsanmartin/high-intensity-colors
Add high-intensity colors option and cli flag.
2023-01-04 19:16:58 +09:00
nico
4922d25917 Add high-intensity colors option and cli flag. 2022-11-19 13:39:15 -03:00
Rene Kita
9192ed59db Add option to set directory for temporary files
With this patch applied the user can configure a directory to store
temporary/cache files. The history and cookies remain in RC_DIR.

I suppose the intent of writing the history to a temp file first is to
make the actual write an atomic operation. As rename() does not work
across mount points, we need to handle the temp file for the history
different to keep this behaviour.

Add a new type for the temp history file and handle this case different
when creating a temp file.
2022-05-01 11:50:09 +02:00
Tatsuya Kinoshita
c3784c9d26 New option disable_center to disable center alignment
Bug-Debian: https://github.com/tats/w3m/issues/175
Bug-Debian: https://github.com/tats/w3m/issues/185
2021-07-03 15:00:18 +09:00
Tatsuya Kinoshita
56ce2a2cc8 Prevent integer overflow due to fontstat 2021-04-24 23:39:52 +09:00
Tatsuya Kinoshita
59ea885da0 Treat 127.0.0.1, [::1], and hostname as localhost 2021-04-23 20:16:50 +09:00
Tatsuya Kinoshita
17a3df7440 New option localhost_only to restrict connections only to localhost
Bug-Debian: https://github.com/tats/w3m/issues/117
2021-04-17 17:42:01 +09:00
Tatsuya Kinoshita
22d33dc8c9 New option cross_origin_referer to use origin only Referer 2021-04-10 22:29:18 +09:00
Tatsuya Kinoshita
c4f588fbb7 New option ssl_ca_default to explicitly use OpenSSL default paths 2021-02-28 18:35:42 +09:00
bptato
3304675aff Support kitty image protocol 2021-02-18 19:18:06 +01:00
Tatsuya Kinoshita
c7040ae3ad Add auto-detection of ssl_ca_file by configure
cf. gnutls-trustfiles in Emacs 27.1
<https://git.savannah.gnu.org/cgit/emacs.git/tree/lisp/net/gnutls.el?h=emacs-27.1#n106>
2021-02-13 20:22:04 +09:00
Tatsuya Kinoshita
1ec090b0d3 Disable TLSv1.0 and TLSv1.1 by default 2021-02-10 21:55:34 +09:00
Tatsuya Kinoshita
4f4d692321 New option ssl_min_version for OpenSSL 1.1 2021-02-10 21:51:44 +09:00
Tatsuya Kinoshita
c01675d342 New option ssl_cipher to specify ciphers for TLSv1.2 and below 2021-02-10 20:01:56 +09:00
bptato
e4570e8b6e Support iTerm2 graphics protocol, replace encodeB with base64_encode 2021-02-02 22:14:46 +01:00
bptato
c5cd2b5716 sixel and osc5379 image display protocols can be chosen in options 2021-02-02 15:06:53 +01:00
bptato
75c54da6ba Space is now entered in URL fields instead of triggering file completion, old behavior can be toggled via options 2020-09-01 20:48:04 +02:00
Tatsuya Kinoshita
6339dd9f13 Merge pull request #146 from acli/20200821_a_CLEANED
Patch to make w3m’s handling of the a element HTML5 compatible (when the stream is HTML5)
2020-08-30 09:57:45 +09:00
Ambrose Li
48c9ec565d In HTML5 anchors should not be closed when encountering divs, for example, 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-24 23:48:09 -04:00
Ambrose Li
9f18e67a9b Cleaned version of 20200823_q branch. Changes the behaviour of the q tag (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.
2020-08-23 22:20:43 -04:00
Azure
83e072d6d5 Allow setting User Agent in Siteconf
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-06-30 12:15:22 -04:00
Laurent Arnoud
b06d1f6a02 Allow to override UserAgent
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
2019-04-21 21:47:52 +02:00
Tatsuya Kinoshita
0c3f5d0e0d Prevent array index out of bounds for symbol
Bug-Debian: https://github.com/tats/w3m/issues/38
2016-11-14 21:20:44 +09:00
Tatsuya Kinoshita
1b107c0dbc Set use_dictcommand to 1 by default 2016-10-30 17:42:18 +09:00
Tatsuya Kinoshita
2b32ef68b0 Set default_url to 1 by default 2016-07-18 22:29:28 +09:00
Tatsuya Kinoshita
06181fceff Add extbrowser4, extbrowser5, ..., and extbrowser9 2016-03-13 20:06:18 +09:00
Tatsuya Kinoshita
0782a7a817 Accept cookies by default 2015-11-19 01:21:42 +09:00
Tatsuya Kinoshita
e66ffbd316 Set argv_is_url to 1 by default
Bug-Arch: https://bugs.archlinux.org/task/47102
2015-11-19 00:24:25 +09:00
Tatsuya Kinoshita
0efbaf15c3 New option "display_borders" to display 0 pixel table borders.
cf. http://d.hatena.ne.jp/rubikitch/20101120
2015-02-02 23:09:34 +09:00
Araki Ken
2fe66f3a6f Add -sixel option which supports image processing by img2sixel. 2014-12-06 20:47:05 +09:00
Araki Ken
147ef0048b - Adjust the image size to the terminal cell size. - If the image size is specified in html source, skip to load the image. 2014-12-06 20:47:04 +09:00
Araki Ken
f4268d8d18 Support remote image by OSC 5379 show_picture sequence. 2014-12-06 20:47:04 +09:00
Olaf Hering
6e73bad0ff Change the default to alt_entity=0
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-12-06 18:00:05 +09:00
Tatsuya Kinoshita
a090abc52e Merge branch 'bug/ssl-init' 2014-10-15 18:15:02 +09:00
Tatsuya Kinoshita
1aace42d02 Disable SSLv3 by default [CVE-2014-3566]
cf. https://blog.mozilla.org/security/2014/10/14/the-poodle-attack-and-the-end-of-ssl-3-0/
2014-10-15 18:14:12 +09:00
Ludwig Nussel
05503271df Force ssl_verify_server on and disable SSLv2 support
Origin: http://www.openwall.com/lists/oss-security/2010/06/14/4
2014-10-15 18:11:45 +09:00
Tatsuya Kinoshita
f7ff70f6da Merge branch 'bug/win64gc'
Conflicts:
	istream.c
	main.c
2013-10-14 23:02:26 +09:00
AIDA Shinra
ec81194f38 Workaround of GC crash on Cygwin64
Patch from <http://www.j10n.org/files/w3m-cvs-1.1055-win64gc.patch>,
[w3m-dev:04469] on 2013-10-14.
2013-10-14 22:31:01 +09:00
Tatsuya Kinoshita
fa5bc4b95d Merge branch 'feature/siteconf' 2013-04-08 21:56:59 +09:00
Tatsuya Kinoshita
a32bf68c85 Support the siteconf feature
Patch to support the siteconf feature, from [w3m-dev 04463]
on 2012-06-27, provided by AIDA Shinra.
2013-04-08 21:48:49 +09:00
Tatsuya Kinoshita
6a032f360b Support the button element as defined in HTML 4.01
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-06-19 20:40:17 +09:00
Tatsuya Kinoshita
5397d09e58 Adding upstream version 0.5.3 2011-05-04 16:41:45 +09:00
Tatsuya Kinoshita
6db339b3d7 Adding upstream version 0.5.2 2011-05-04 16:23:02 +09:00
Tatsuya Kinoshita
72f72d64a4 Adding upstream version 0.5.1 2011-05-04 16:05:14 +09:00