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
bptato
694a10271d
Return Str from base64_encode, fix extraction of first gif frame for animations in put_image_kitty
2021-04-04 17:57:13 +02:00
Tatsuya Kinoshita
58b26000a2
Limit size and number of tables to prevent integer overflow
2021-04-03 19:40:24 +09:00
bptato
116e10749c
Nested <dl>s
2021-02-13 18:02:26 +01:00
bptato
77ecf9b46b
Fix <dl compact>
2021-02-13 17:26:30 +01:00
bptato
b2081866fd
Improve description list rendering
2021-02-13 16:51:48 +01:00
bptato
a3bd98c888
Support brotli content encoding
2021-02-10 20:23:56 +01:00
bptato
d277e80771
Some cleanup for base64_encode
2021-02-02 23:59:42 +01:00
bptato
e4570e8b6e
Support iTerm2 graphics protocol, replace encodeB with base64_encode
2021-02-02 22:14:46 +01:00
Tatsuya Kinoshita
794351356e
Disable <section> behaves as <hr>
...
Because displaying horizontal rules are redundantly and unneeded,
especially when sections are nested.
2021-01-18 22:17:31 +09:00
Ambrose Li
ec722e7a53
q_level was never initialized, causing random test failures. This should fix that
2020-12-17 21:51:42 -05:00
bptato
aea44d3194
Fix Gopher binaries causing w3m to be stuck in download mode; try to guess Gopher image type and fallback to png
2020-12-02 23:20:08 +01:00
bptato
7dcc7ccff1
Add support for Gopher items 5 and I
2020-12-02 22:54:49 +01:00
Tatsuya Kinoshita
249f2fa3ff
Fix compilation errors when USE_GOPHER and not USE_M17N
2020-11-11 19:30:35 +09:00
bptato
469c4084aa
Remove unnecessary file_unquote call
2020-11-07 23:23:33 +01:00
bptato
171db89cc2
Support Gopher items search (7) and binary file (9)
2020-11-07 23:12:35 +01:00
bptato
26876fc89b
Moved back filetype indicator to the beginning of file names
2020-10-21 16:31:05 +02:00
bptato
16e0b6aa63
Improved gopher directory display
2020-10-21 13:30:01 +02:00
bptato
4bc97ce307
Improved gopher support
2020-10-21 12:56:36 +02:00
Tatsuya Kinoshita
f8b3efef9c
Merge pull request #147 from acli/20200825_section
...
Rudimentary support for the section tag
2020-08-30 09:59:02 +09: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
b9488ffe60
Somehow the wrong quotes were used. This should fix the failing tests.
2020-08-29 15:23:36 -04:00
Ambrose Li
4d8ba3fe21
wip from about a week ago. Need to stash these away for now to check the q branch
2020-08-29 04:26:12 -04: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
Ambrose Li
73949a3e12
Rudimentary support for figure, figcaption
2020-08-21 04:26:26 -04:00
Jia Zhouyang
996287e2fd
Add error handling code for fopen
...
Check the return value of fopen, and add proper error handling code.
2018-03-04 20:50:49 +08:00
Kyle J. McKay
d398b40332
file.c: compute correct base URL when not absolute
...
When a server makes use of the PATH_INFO feature in a CGI,
the returned pages may often have a <base href="..." /> tag
specifying the URL of the CGI itself as the base.
However, to avoid hard-coding the scheme and host into such
a base href, the href value will often omit the scheme, host
and port.
Make sure that when parsing any such base href value that
any omitted components are taken from the current URL rather
than taken as being from a bare, absolute file:/// URL.
Signed-off-by: Kyle J. McKay <mackyle@gmail.com >
2017-08-23 11:48:38 -07:00
Tatsuya Kinoshita
aa2077e06f
Prevent heap-use-after-free read in HTMLlineproc0()
...
Bug-Debian: https://github.com/tats/w3m/issues/81
2016-12-18 01:20:14 +09:00
Tatsuya Kinoshita
7a2675b4a5
Prevent infinite loop in feed_textarea()
...
Bug-Debian: https://github.com/tats/w3m/issues/85
2016-12-18 00:44:36 +09:00
Tatsuya Kinoshita
6eea841d3a
Prevent overflow beyond the end of string in caller of get_mclen()
...
Bug-Debian: https://github.com/tats/w3m/issues/59
Bug-Debian: https://github.com/tats/w3m/issues/73
Bug-Debian: https://github.com/tats/w3m/issues/74
Bug-Debian: https://github.com/tats/w3m/issues/76
Bug-Debian: https://github.com/tats/w3m/issues/79
Bug-Debian: https://github.com/tats/w3m/issues/80
Bug-Debian: https://github.com/tats/w3m/issues/83
Bug-Debian: https://github.com/tats/w3m/issues/84
2016-12-16 00:44:44 +09:00
Tatsuya Kinoshita
107810c145
Revert "Prevent overflow beyond the end of string in proc_mchar()"
...
This reverts commit 512ed467d1
.
2016-12-15 22:55:23 +09:00
Tatsuya Kinoshita
2aa21dc328
Revert "Prevent overflow beyond the end of string in proc_mchar()"
...
This reverts commit e79d0ec2a0
.
2016-12-15 22:42:12 +09:00
Tatsuya Kinoshita
e79d0ec2a0
Prevent overflow beyond the end of string in proc_mchar()
...
Bug-Debian: https://github.com/tats/w3m/issues/80
cf. https://github.com/tats/w3m/issues/59
2016-12-13 23:04:18 +09:00
Tatsuya Kinoshita
26484fc138
Prevent heap-use-after-free in HTMLlineproc0()
...
Bug-Debian: https://github.com/tats/w3m/issues/65
2016-12-07 22:09:06 +09:00
Tatsuya Kinoshita
ecf5771419
Prevent negative values for offset and pos in push_link()
...
Bug-Debian: https://github.com/tats/w3m/issues/64
2016-12-07 21:57:37 +09:00
Tatsuya Kinoshita
512ed467d1
Prevent overflow beyond the end of string in proc_mchar()
...
Bug-Debian: https://github.com/tats/w3m/issues/59
2016-12-07 21:24:44 +09:00
Tatsuya Kinoshita
d7f55d5959
Prevent negative array index in process_textarea()
...
Bug-Debian: https://github.com/tats/w3m/issues/58
2016-12-05 21:48:30 +09:00
Tatsuya Kinoshita
f34c37f315
Prevent negative array index for marks in HTMLlineproc2body()
...
Bug-Debian: https://github.com/tats/w3m/issues/61
2016-12-05 21:48:20 +09:00
Tatsuya Kinoshita
0e66622582
Prevent negative value of row for pushTable() in HTMLlineproc0()
...
Bug-Debian: https://github.com/tats/w3m/issues/67
2016-12-05 21:48:20 +09:00
Tatsuya Kinoshita
6c6a2cbced
Prevent negative array index in getMetaRefreshParam()
...
Bug-Debian: https://github.com/tats/w3m/issues/63
2016-12-05 21:48:08 +09:00
Kuang-che Wu
41a607b06e
fix uninitialized variable in process_img(). fix #44
2016-11-27 15:33:34 +08:00
Tatsuya Kinoshita
ecfdcbe113
Prevent deref null pointer in HTMLlineproc0()
...
Bug-Debian: https://github.com/tats/w3m/issues/42
2016-11-17 19:33:09 +09:00
Tatsuya Kinoshita
2a4a2fb9f1
Prevent infinite recursion with nested table and textarea
...
Bug-Debian: https://github.com/tats/w3m/issues/20#issuecomment-260590257
2016-11-15 20:11:52 +09:00
Tatsuya Kinoshita
9db438094e
Prevent null pointer deref due to bad form id
...
Bug-Debian: https://github.com/tats/w3m/issues/39
2016-11-14 21:22:13 +09: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
a59a35211c
Prevent null pointer dereference in HTMLlineproc2body for textarea_int
...
Bug-Debian: https://github.com/tats/w3m/issues/32#issuecomment-260170163
2016-11-13 17:33:53 +09:00
Tatsuya Kinoshita
ff8510ab95
Prevent infinite recursion in HTMLlineproc0
...
Bug-Debian: https://github.com/tats/w3m/issues/36
2016-11-07 21:14:50 +09:00
Tatsuya Kinoshita
af592aa5f1
Prevent crash after allocate string of negative size
...
Bug-Debian: https://github.com/tats/w3m/issues/33
2016-11-07 19:02:42 +09:00