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
Tatsuya Kinoshita
216722ed72
Prevent memory exhausted due to repeat appending "</table>"
...
Bug-Debian: https://github.com/tats/w3m/issues/23
2016-11-07 01:25:49 +09:00
Tatsuya Kinoshita
c6c39973e7
Prevent null pointer dereference in HTMLlineproc2body
...
Bug-Debian: https://github.com/tats/w3m/issues/32
2016-11-07 00:35:42 +09:00
Tatsuya Kinoshita
33509cc81e
Fix uninitialised values for <i> and <dd>
...
Bug-Debian: https://github.com/tats/w3m/issues/16
2016-08-20 07:12:41 +09:00
Tatsuya Kinoshita
6612318232
Revert "Fix uninitialised values for <i> and <dd>"
...
This reverts commit 0fba2f1a6e
.
cf. 0fba2f1a6e (commitcomment-18703355)
2016-08-20 06:57:56 +09:00
Tatsuya Kinoshita
0fba2f1a6e
Fix uninitialised values for <i> and <dd>
...
Bug-Debian: https://github.com/tats/w3m/issues/16
2016-08-19 19:05:25 +09:00
Tatsuya Kinoshita
010b68580d
Prevent segfault with malformed input_alt
...
Bug-Debian: https://github.com/tats/w3m/issues/18
2016-08-18 19:26:58 +09:00
Tatsuya Kinoshita
67be73b03a
Prevent segfault with incorrect button type
...
Bug-Debian: https://github.com/tats/w3m/issues/17
2016-08-18 00:21:08 +09:00
Tatsuya Kinoshita
3d4eeda9ec
Prevent segfault with incorrect form_int fid
...
Bug-Debian: https://github.com/tats/w3m/issues/15
2016-08-17 23:47:44 +09:00
Tatsuya Kinoshita
a25fd09f74
Prevent negative array index for selectnumber and textareanumber
...
Bug-Debian: https://github.com/tats/w3m/issues/12
2016-08-17 19:47:19 +09:00
Tatsuya Kinoshita
4317749639
Truncate large values of table attributes
...
Bug-Debian: https://github.com/tats/w3m/issues/11
2016-08-16 22:19:55 +09:00
Tatsuya Kinoshita
59b91cd8e3
Prevent segfault with malformed input type
...
Bug-Debian: https://github.com/tats/w3m/issues/7
2016-08-09 00:02:24 +09:00
Tatsuya Kinoshita
15b6fb04b9
Fix mistake of unescape spaces for _doFileCopy
...
cf. [w3m-dev-en 00751], [w3m-dev-en 00752] on 2002-06-09
2016-03-29 19:15:15 +09:00
Tatsuya Kinoshita
a1368c5793
Do not use C99-style comments
2015-09-06 21:54:28 +09:00
David Crosby
aaa4ef6a72
Mitigate issue #16 found by @kcwu
2015-09-06 21:17:36 +09:00
David Crosby
dd9d2a9752
Remove unused value
2015-08-11 21:59:27 +09:00