Fork 0
Commit Graph

3081 Commits

Author SHA1 Message Date
Witold Filipczyk ed8818f4a1 [options] latin1_title is bool. 2020-07-05 12:21:22 +02:00
rkd77 e885341db1
Merge pull request #55 from guidocella/st
[config] Recognize st
2020-07-05 11:56:52 +02:00
Guido Cella 06df96c5db [config] Recognize st 2020-07-05 09:21:24 +02:00
Guido Cella 0d8d834af3 [rewrite] Update prefixes 2020-07-05 05:58:25 +02:00
Witold Filipczyk bde596ab67 [cgi] Proper format on 32bit 2020-07-04 13:44:41 +02:00
Witold Filipczyk 397353a4dc [gnutls] connection.ssl.https_by_default also for gnutls 2020-07-04 13:35:29 +02:00
Guido Cella a26c5956f4 [ssl] Let requests default to https 2020-06-25 10:40:59 +02:00
sgerwk 85cb50c7e2 fix previous commit 2020-06-24 19:22:21 +02:00
sgerwk 0e820ad3cd do not enable mouse from keyboard initialization if mouse is disabled 2020-06-24 17:38:50 +02:00
Witold Filipczyk e94a912f1e [style] spaces -> tab 2020-06-05 18:07:45 +02:00
sgerwk 76a973e902 show an alert when the search string is not found 2020-06-05 14:13:37 +02:00
Witold Filipczyk 66c476a754 [mouse] Initialization of variable was not necessary. 2020-05-26 21:36:46 +02:00
Witold Filipczyk 8ba7176f81 [cookies] Slightly modified path.c 2020-05-26 20:47:31 +02:00
sgerwk bb66fd3c37 config option for disabling the mouse 2020-05-26 00:29:57 +02:00
Witold Filipczyk c56d11cfb9 [main] Fixed issue with scripting and fork_on_start 2020-05-22 21:52:36 +02:00
Witold Filipczyk 9e71d7f3c8 [scripting] lua_rawlen. Refs #46 2020-05-22 20:46:35 +02:00
Witold Filipczyk 2dcac411a8 [sessions] New option ui.sessions.fork_on_start
Default value of this bool option is 0. Nothing changes in behaviour since 0.13.1.
If you set it to 1, one more process will be started. This main process will handle
only interlink connections, while other processes will be slaves to it.
This will allow to exit first started elinks session without breaking others.
2020-05-21 16:53:43 +02:00
Witold Filipczyk 033f15fe7b [session] Shorter 2020-05-20 20:38:39 +02:00
Witold Filipczyk 2273c4a370 [session] Because all terminals are slaves, choose first session for remote. 2020-05-20 19:05:58 +02:00
Witold Filipczyk f89b26d5b2 [interlink] Fixed elinks -remote 'ping()' 2020-05-20 18:35:40 +02:00
Witold Filipczyk 08138487a0 [interlink] Test commit. All terminals - slaves.
Before when master terminal quit session, all slave terminal stopped to work.
There is a workaround. ELinks on master terminal forks on start and becomes slave.
2020-05-17 16:35:58 +02:00
Witold Filipczyk ca71978c81 [config] Shorter summary 2020-05-13 21:10:16 +02:00
Witold Filipczyk 60f6c35a2c [config] Config option "ui.tostop" . Refs #45
ui.tostop decides whether to stop background processes trying to write
to the terminal. Default enabled.
2020-05-13 20:51:37 +02:00
Witold Filipczyk df3a79bed5 Revert "[terminal] Try to fix #45 as suggested by Debian user"
This reverts commit a3e84e27c7.
2020-05-13 20:33:00 +02:00
Witold Filipczyk 16bb37b84f [cookies] Missing file 2020-05-10 21:49:39 +02:00
Witold Filipczyk a3e84e27c7 [terminal] Try to fix #45 as suggested by Debian user 2020-05-10 16:11:52 +02:00
Witold Filipczyk 8c377a083d [cookies] Check cookie path according to RFC 6265. Added test 2020-05-10 15:52:33 +02:00
Ian Jackson 9bb3415811 cookies: Properly handle cookie path= equal to request path
The code in cookies.c would arrange that c->path would always contain
a string ending in "/".  This may have been an attempt to make it
easier to do a proper subpath check in is_path_prefix.

Howver, the overall result is wrong in the case
   Set-Cookie: ....;path=/some/thing
and then later

c->path gets set to "/some/thing/" which doesn't pass the test in

The precise required algorithm is described in RFC6265 5.1.4.  The
existing code fails to implement the first of the three bulleted
conditions at the end of 5.1.4.

The trailing "/" is actually not so helpful for this.  It is more
convenient to change is_path_prefix to do subpath matching directly:
we change it to insist that the supposed path prefix is a textual
prefix of the request path, *and* that this happens at a path segment
boundary: ie at '/' or end of string.[1]

Accordingly, we no longer add "/" to the cookie path.  When we strip
the final path element we strip the "/" too.  We still insert a "/" if
the path was empty.

[1] It is not 100% clear to me what "path" (URI_PATH) is but I think
it does not include any query parameters.  If I am wrong about that
then '?' should be tolerated too.

CC: Mark Wooding <mdw@distorted.org.uk>
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2020-05-09 14:33:45 +02:00
Witold Filipczyk eb46577ccb [options] Added remote's reload and search to elinks --long-help 2020-05-06 20:32:19 +02:00
Witold Filipczyk d857560466 [ipv6] this code was not tested 2020-05-05 21:48:22 +02:00
Witold Filipczyk 5188b8ab84 [network] -bind-address-ipv6 <ipv6> to bind to IPv6 address 2020-05-05 21:39:54 +02:00
Witold Filipczyk 35e32f5acb [network] -bind-address <ipv4> cmdline option to bind to given IP address 2020-05-05 21:18:29 +02:00
Witold Filipczyk 5c57cf6270 [fragment] Do not move to the top, when nonexisting fragment is in current document. Refs #42
Behaviour similar to bigger browsers.
2020-04-28 19:13:36 +02:00
Witold Filipczyk 95466e73ed [remote] Slightly modified -remote search 2020-04-26 11:45:46 +02:00
sgerwk d1be5c322f add -remote 'search(string)' 2020-04-25 19:55:16 +02:00
Witold Filipczyk 5f462239be [cgi] Calculate CONTENT_LENGTH also for file uploads
Before big_file.cgi caused pipe errors when ported to Python3.
2020-01-03 20:17:10 +01:00
Witold Filipczyk e4220c0301 [encoding] Do not announce "deflate" as supported encoding method 2019-12-22 11:30:12 +01:00
Witold Filipczyk d8de9ac7e5 [gcc] pragma outside function body 2019-12-06 20:13:38 +01:00
Witold Filipczyk e8cb012ada [ssl] Allow older versions of openssl. Refs #37 2019-12-06 18:50:31 +01:00
Witold Filipczyk 51dd9e7e6e [color] Revert changes related to leading and trailing spaces and colours
It did not look good.
2019-11-21 21:01:49 +01:00
Witold Filipczyk e532e348f8 [timer] set_event_for_timer is only for libevent 2019-11-16 11:35:18 +01:00
Witold Filipczyk d56ad7ceb0 [select] restrict_fds was called only with LIBEVENT and POLL 2019-11-16 11:29:06 +01:00
Witold Filipczyk 21b8cf37d9 [select] Fixes based on links code
bittorrent code caused segmentation fault, because get_handler read
outside of current fd range. Workaround is to return NULL.
2019-11-16 09:40:01 +01:00
Witold Filipczyk f50e306d16 [bittorrent] I'm not sure, but I guess it was a bug here.
sizeof == 8 vs sizeof == 20
2019-11-15 17:29:58 +01:00
Witold Filipczyk 94c6c950f7 [zstd] include 2019-11-15 17:09:31 +01:00
Witold Filipczyk ca3926bb9d [ecmascript] No warning 2019-11-15 16:40:29 +01:00
Witold Filipczyk 558baa830e [select] More code to avoid warning 2019-11-15 16:37:02 +01:00
Witold Filipczyk 0724c3c49d [gcc] Silent gcc. I guess code was ok. 2019-11-15 16:27:16 +01:00
Witold Filipczyk 85066d7016 [gnutls] gnutls_compression_get_name is deprecated. 2019-11-15 16:13:17 +01:00
Witold Filipczyk 7456f785ca [ssl] wrong signature of function 2019-11-15 14:33:30 +01:00