Commit Graph

61 Commits

Author SHA1 Message Date
Tatsuya Kinoshita
38c043f50f Check length of hostname with STR_SIZE_MAX 2021-04-24 23:39:34 +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
4e0375c76f Don't include username in Referer 2021-04-10 12:19:58 +09:00
Tatsuya Kinoshita
4e2cfffd88 Don't set Referer when data URI scheme 2021-04-10 11:14:26 +09:00
Tatsuya Kinoshita
47a2a5514b Prevent GC warnings of repeated allocation
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=746701
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=832407
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=862382
2021-03-29 20:37:38 +09:00
Tatsuya Kinoshita
2bbcd7902a Ignore the "-" option to accept w3m - as "read from stdin"
Bug-Debian: https://github.com/tats/w3m/issues/87
2021-03-26 23:10:40 +09:00
Tatsuya Kinoshita
06f2475157 Don't use SECLEVEL when not OPENSSL_TLS_SECURITY_LEVEL 2021-02-21 12:03:51 +09:00
Tatsuya Kinoshita
03f301e219 Add eNULL to ssl_cipher when -insecure 2021-02-21 12:03:04 +09:00
Tatsuya Kinoshita
b6e79c211c Update wording for -debug option 2021-02-11 19:37:28 +09:00
Tatsuya Kinoshita
492dcb182a New option -insecure to use insecure SSL config options
Alias for `-o ssl_cipher=ALL:@SECLEVEL=0 -o ssl_min_version=all
-o ssl_forbid_method= -o ssl_verify_server=0`.
2021-02-11 19:37:21 +09:00
bptato
c5cd2b5716 sixel and osc5379 image display protocols can be chosen in options 2021-02-02 15:06:53 +01:00
Parag Nemade
f1fd7215d2 Fix FTBFS due to redefinition of sys_errlist
Origin: 99f30870ca
Bug-Fedora: https://bugzilla.redhat.com/show_bug.cgi?id=1038009
Bug-MacPorts: https://trac.macports.org/ticket/61356
2020-11-22 21:13:27 +09:00
bptato
99aa56a75c Removed an unnecessary variable declaration 2020-08-31 19:00:17 +02:00
bptato
9916eadf24 New commands for moving to the top, middle and bottom of buffer 2020-08-31 18:02:07 +02:00
Roland Illig
ced87de02c Fix -Wchar-subscripts
Origin: http://cvsweb.netbsd.org/bsdweb.cgi/~checkout~/pkgsrc/www/w3m/patches/patch-main.c?rev=1.1&content-type=text/plain
Bug: https://sourceforge.net/p/w3m/patches/76/
2020-03-27 20:58:22 +09:00
We're Yet
3f15e127d2 Add command to go home.
When w3m is launched, if no other options are specified, it attempts to
read HTTP_HOME and WWW_HOME from the environment and upon finding a
value for one of these load the url specified.  Once launched, though,
w3m provides no convenience for navigating to the home page.

Here, that ability is added.  A new command GOTO_HOME is defined with a
default key binding of C-_.
2020-01-03 23:42:05 -08: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
18dcbadf27 Make temporary directory safely when ~/.w3m is unwritable 2018-01-21 10:34:11 +09:00
Tatsuya Kinoshita
1fd08f383d Typo fix in fusage()
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=878106
2017-12-27 06:42:26 +09:00
Tatsuya Kinoshita
ace7655fa9 English fix
cf. [emacs-w3m:12706], http://emacs-w3m.namazu.org/ml/msg12598.html
2017-12-27 06:41:57 +09:00
ITOH Yasufumi
73d015d4bb Fix suspend (^Z) behavior.
Suspend the job w3m belongs to, not w3m only.

Signed-off-by: Thomas Klausner <wiz@NetBSD.org>
2016-11-06 20:29:04 +01:00
Tatsuya Kinoshita
920d56e3f0 Update description of SOURCE and VIEW 2016-06-19 18:36:51 +09:00
Tatsuya Kinoshita
a4031dbd75 Update English messages 2016-06-19 14:19:19 +09:00
Justin B Rye
f4885d0838 English fixes
cf. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=772341#15
Origin: https://lists.debian.org/debian-l10n-english/2014/12/msg00002.html
Origin: https://lists.debian.org/debian-l10n-english/2014/12/msg00030.html
Origin: https://lists.debian.org/debian-l10n-english/2015/02/msg00011.html
2016-04-02 06:51:06 +09:00
Tatsuya Kinoshita
06181fceff Add extbrowser4, extbrowser5, ..., and extbrowser9 2016-03-13 20:06:18 +09:00
Tatsuya Kinoshita
ff21632495 Typo fix for ACCESSKEY
cf. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=779092#5
2016-02-28 08:48:56 +09:00
David Crosby
fc5b50353e Adjust while loop 2015-08-11 21:59:27 +09:00
David Crosby
a00c90930b use int for c 2015-08-11 21:59:27 +09:00
David Crosby
7e5b33c30e Remove dead assignments flagged by Clang static analysis 2015-08-11 21:59:27 +09:00
IWAMOTO Kouichi
dd054480d7 Fix that SGR style mouse handler has off-by-one problem
cf. https://github.com/tats/w3m/issues/5
Origin: https://gist.github.com/ttdoda/30c189a63d483beeb207
Bug: https://sourceforge.net/p/w3m/patches/65/
2015-08-05 06:35:09 +09:00
Tatsuya Kinoshita
928af643ca Correct GC version confirmation 2015-05-03 11:44:14 +09:00
yshl
70334e3605 correct GC version confirmation 2015-05-02 10:42:35 +09:00
yshl
e0641028c7 for gc-7.1 2015-04-26 18:38:08 +09:00
Tatsuya Kinoshita
ee0405c689 Drop C99 features 2015-01-15 20:50:16 +09:00
Scarlett
cbec7032ee Add overflow detection
Origin: http://marc.info/?l=openbsd-ports&m=142090828929750&w=2

* main.c: Call exit(1) when out of memory to avoid dereferencing null
pointers when gc's malloc fails.

* alloc.h: Replacements for w3m's allocation macros which add
overflow detection and concentrate the macros in one file.

* indep.h, libwc/charset.c, libwc/status.c, matrix.c: Use the
overflow-detecting allocation macros from alloc.h.
2015-01-15 19:38:11 +09:00
Scarlett
ec8272d8fe Correct printf arguments and use asprintf
Origin: http://marc.info/?l=openbsd-ports&m=142090828929750&w=2

* Str.c: Use asprintf() instead of rolling our own printf string
length detection.

* cookie.c: Pass the char pointer in the string struct to printf %s
instead of the string struct itself.
Print time_t using %lld instead of %ld to allow for 64-bit time_t.

* main.c: Print a long int using the correct format specifier.

* map.c: Print size_t using the correct format specifier.
2015-01-15 18:58:35 +09:00
Araki Ken
4459dbe26e img2sixel exits by Ctrl+C. Enable GIF Animation if 'I' is pressed to show it. 2014-12-06 20:47:05 +09:00
Araki Ken
2fe66f3a6f Add -sixel option which supports image processing by img2sixel. 2014-12-06 20:47:05 +09:00
Araki Ken
f4268d8d18 Support remote image by OSC 5379 show_picture sequence. 2014-12-06 20:47:04 +09:00
Tatsuya Kinoshita
411555fd5c Merge branch 'bug/gc72' 2014-08-22 20:58:03 +09:00
Micah Cowan
770eec8304 Support Boehm GC 7.2
Replace Gentoo's patch to prevent segfaults due to infinite recursion.

Origin: https://bugs.debian.org/cgi-bin/bugreport.cgi?msg=5;filename=080_gc72.patch;att=1;bug=758831
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=758831
Bug-Fedora: https://bugzilla.redhat.com/show_bug.cgi?id=555467
Bug: http://sourceforge.net/p/w3m/patches/63/
Bug: http://sourceforge.net/p/w3m/patches/59/
2014-08-22 20:45:50 +09:00
Tatsuya Kinoshita
f721415154 Revert "Support Boehm GC 7.2" (w3m-0.5.2-gc72.patch from Gentoo)
This reverts commit 4331db3e3e.
2014-08-22 20:42:59 +09:00
Tatsuya Kinoshita
c1c4d3aa83 Merge branch 'bug/search-next' 2013-12-07 10:34:11 +09:00
AIDA Shinra
b5641f56ce Fix crash after SEARCH_NEXT
Patch from <http://www.j10n.org/files/w3m-cvs-1.1055-search-next.patch>,
[w3m-dev:04473] on 2013-12-07.
2013-12-07 10:32:58 +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
0b8986e820 Merge branch 'feature/vim-like' 2013-10-12 19:59:25 +09:00
Laurence Richert
3864447c90 vim/-perator like handling
- half page scrolling
- jumping to elements numbered by getLinkNumberStr() from Karsten
  Schoelzel
2013-10-12 19:57:35 +09:00
Tatsuya Kinoshita
62aafb2e9b Merge branch 'bug/execdict' 2013-08-04 11:55:09 +09:00
Tatsuya Kinoshita
0c6b7c5e06 Fix potentially segfault of execdict() 2013-08-04 11:54:23 +09:00