Witold Filipczyk
31768f129a
bug 949: Abort button works.
2007-05-02 09:29:39 +02:00
Witold Filipczyk
d26410d0ff
bug 397: It works for download_manger. I hope this don't break anything.
2007-05-01 22:07:33 +02:00
Jonas Fonseca
910087ff13
Make non-standard pluginspage attribute to embed hyperlinkable
...
Appears on page reachable from links on
http://www.gilbertogil.com.br/sec_discografia_view.php?id=17
2007-05-01 20:37:08 +02:00
Laurent MONIN
d5acb25a08
Prevent internal errors when terminal width or height are very small
...
(1x1 was fatal).
2007-05-01 20:37:03 +02:00
Laurent MONIN
e1332c29ce
Insert newlines and remove parenthesis in -version and Info box display.
2007-05-01 20:36:49 +02:00
Laurent MONIN
6bed8f1503
Fix trailing whitespaces
2007-05-01 20:36:04 +02:00
Laurent MONIN
c496a7eaf6
Enhance version and features display. Wrap on spaces when features
...
are sent to console using -version, and let Info dialog do the job in
interactive mode.
2007-05-01 20:32:52 +02:00
Kalle Olavi Niemitalo
75dbfdb7e2
ELinks 0.13.GIT.
...
There is a now separate elinks-0.12 branch for the upcoming 0.12.0 release.
2007-05-01 20:32:38 +02:00
Kalle Olavi Niemitalo
1c9165e931
Bug 712, ssl_set_no_tls: Disable TLS protocols for GnuTLS too.
...
And log this in NEWS, although that may have to be reverted later if
it turns out this change just hides a real bug elsewhere in ELinks.
2007-05-01 20:28:27 +02:00
Simon Josefsson
8c53b32be7
Use gnutls_set_default_priority.
...
Thereby enabling TLS 1.2 on GnuTLS versions that support it.
2007-05-01 20:28:18 +02:00
Kalle Olavi Niemitalo
e2f26e45f8
l_pipe_read: Don't leak the old block if mem_realloc fails.
2007-05-01 20:28:12 +02:00
Kalle Olavi Niemitalo
b195975a27
Bug 945: Don't crash if the error message is not a string.
2007-05-01 20:27:16 +02:00
Kalle Olavi Niemitalo
4766314960
Bug 941: Survive an unexpected number of 227 or 229 FTP responses.
...
And document the functions a little.
[ From commit 71ff470f2e
in ELinks
0.11.2.GIT. --KON ]
2007-05-01 20:24:36 +02:00
Kalle Olavi Niemitalo
792bb98e58
charset_list: Map the "System" codepage to the underlying one.
...
If LC_CTYPE=fi_FI.ISO-8859-15, and terminal.*.charset = System,
then the charset menu will select ISO 8859-15 by default.
2007-05-01 20:24:20 +02:00
Kalle Olavi Niemitalo
4821d841c7
do_move_bookmark: Update comment to match reality.
...
[ From commit 22d051925e
in ELinks
0.11.2.GIT. --KON ]
2007-05-01 20:23:34 +02:00
Kalle Olavi Niemitalo
37ca87a01e
do_smb: URI-encode the username and password.
...
I tested that this does the right thing for the username "Kalle %50"
(encodes it to "Kalle%20%2550", and libsmbclient then decodes back).
2007-05-01 20:23:29 +02:00
Kalle Olavi Niemitalo
33319cd842
do_smb: Don't decode_uri.
...
libsmbclient will decode the URI on its own, so if ELinks does that too,
file names like "2%200" will be incorrectly handled.
2007-05-01 20:22:07 +02:00
Kalle Olavi Niemitalo
9418f3d508
TAGS: Doh, don't forget to scan the *.[ch] files.
2007-05-01 20:22:02 +02:00
Kalle Olavi Niemitalo
64159aa70a
TAGS: Scan *.inc too. Recognize the ACTION_ macro.
2007-05-01 20:21:57 +02:00
Kalle Olavi Niemitalo
13acf06876
Don't mark undisplayed names of modules for translation.
...
Exclude unneeded header files. This partially reverts commit
90980a944e
, with permission.
2007-05-01 20:21:50 +02:00
Kalle Olavi Niemitalo
ac818c4837
report_scripting_error: Look up module names with gettext.
2007-05-01 20:21:42 +02:00
Laurent MONIN
a4f1b7e489
Mark all module names for translation and include needed header files.
2007-05-01 20:20:15 +02:00
Kalle Olavi Niemitalo
36ce51f912
ftp: Decode strftime results from the system codepage.
2007-05-01 20:20:09 +02:00
Kalle Olavi Niemitalo
605d04378f
add_cp_html_to_string: New function.
...
To be used when strings from gettext or strftime must be inserted
into an HTML document with a potentially different charset.
2007-05-01 20:20:04 +02:00
Kalle Olavi Niemitalo
269a8f4397
ftp: Collect HTML formatting parameters into a structure.
2007-05-01 20:19:58 +02:00
Kalle Olavi Niemitalo
21bdcad9c7
ftp: Allocate a larger buffer for the timestamp string.
2007-05-01 20:19:53 +02:00
Kalle Olavi Niemitalo
b636024ede
ftp: Don't pad the timestamp column with spaces.
2007-05-01 20:19:48 +02:00
Kalle Olavi Niemitalo
d696d6530f
show_http_error_document: Generate a charset parameter.
2007-05-01 20:19:41 +02:00
Kalle Olavi Niemitalo
b29655f25f
file: Directory listings are in the system charset.
...
Give them a corresponding Content-Type header. This must go in
cached->head because cached->content_type is supposed to be just
type/subtype. It will also be deduced from cached->head, so don't set
it separately.
2007-05-01 20:19:34 +02:00
Kalle Olavi Niemitalo
55bce38eee
struct directory_entry: Document the charset and mem_free.
2007-05-01 20:19:29 +02:00
Kalle Olavi Niemitalo
e1bc8aafcc
add_date_to_string: Let last two parameters point to const.
2007-05-01 20:19:24 +02:00
Kalle Olavi Niemitalo
a4dee5acba
intl: Fork get_cp_config_name off get_cp_mime_name.
...
This may help with bug 914 but I'm not testing that yet.
2007-05-01 20:19:18 +02:00
Kalle Olavi Niemitalo
81cb9155d2
add_html_to_string: Do not encode bytes 0x80...0xFF.
...
Reported by Witold Filipczyk.
2007-05-01 20:19:11 +02:00
Kalle Olavi Niemitalo
65efed3e83
Use add_string_to_string where applicable.
2007-05-01 20:19:06 +02:00
Kalle Olavi Niemitalo
43b8bdd8c3
add_string_to_string: Don't fail if @from is empty.
...
Old versions of add_string_to_string returned the target string
unmodified if from->source pointed to a null character, which usually
meant that the source string was empty. That was changed in commit
5e18576391f75ad84e04f9c8a30b93d08f0b92ab on 2004-11-03 so that
add_string_to_string instead returned NULL in that situation. The
change seems to have been inadvertent.
I'm now reverting that change and also making add_string_to_string
check the emptiness of the source string based on the stored length
only, rather than on any null characters. So the function can now
also be used with non-C strings containing embedded null characters.
Note that the previous version did not completely prevent embedded
null characters either, because it checked only the first character.
2007-05-01 20:19:00 +02:00
Kalle Olavi Niemitalo
ae62c0ef46
utf8_to_unicode: Let the end parameter point to const.
2007-05-01 20:18:54 +02:00
Kalle Olavi Niemitalo
7e86205902
add_html_to_string: Also restore the '\0' terminator.
2007-05-01 20:17:28 +02:00
Kalle Olavi Niemitalo
14d79f6c91
add_html_to_string: If out of memory, roll back and return NULL.
2007-05-01 20:17:19 +02:00
Kalle Olavi Niemitalo
8c9858b6a0
add_html_to_string: Encode only known unsafe or non-ASCII characters.
...
In particular, do not encode '%' and '/', which are common in URIs.
2007-05-01 20:17:04 +02:00
Kalle Olavi Niemitalo
bd0dce9a3a
init_directory_listing: Link to original URLs. Decode for display only.
...
HTML-escape all strings that are not intended to contain markup.
2007-05-01 20:16:46 +02:00
Witold Filipczyk
07843f924c
Hack to let auto-commiting work.
2007-05-01 20:16:43 +02:00
Kalle Olavi Niemitalo
de2ce3319c
More const in URI functions.
...
Not yet all of them, though.
2007-05-01 20:08:25 +02:00
Kalle Olavi Niemitalo
bca031d1ba
ftp, add_file_cmd_to_str: Check errors from string functions.
...
Use goto for error handling. Free all strings in the same place.
2007-05-01 20:08:19 +02:00
Kalle Olavi Niemitalo
4bcce2e5ea
Reject CR and LF characters in FTP pathnames.
2007-05-01 20:08:13 +02:00
Kalle Olavi Niemitalo
12d94d3408
Cast the NULL argument of string_concat to unsigned char *.
...
string_concat reads the args with va_arg(ap, const unsigned char *),
and the NULL macro may have the wrong type (e.g. int).
Many places pass string literals of type char * to string_concat.
This is in principle also a violation, but I'm ignoring it for now
because if it becomes a problem with some C implementation, then so
will the use of unsigned char * with printf "%s", which is so
widespread in ELinks that I'm not going to try fixing it now.
2007-05-01 20:05:12 +02:00
Kalle Olavi Niemitalo
7e71f929af
Cast the NULL argument of straconcat to unsigned char *.
...
straconcat reads the args with va_arg(ap, const unsigned char *),
and the NULL macro may have the wrong type (e.g. int).
Many places pass string literals of type char * to straconcat. This
is in principle also a violation, but I'm ignoring it for now because
if it becomes a problem with some C implementation, then so will the
use of unsigned char * with printf "%s", which is so widespread in
ELinks that I'm not going to try fixing it now.
2007-05-01 20:05:04 +02:00
Kalle Olavi Niemitalo
33b8f7175e
Cast variadic arguments of add_to_ml to void *.
...
getml reads the args with va_arg(ap, void *), and the NULL macro in
particular may have the wrong type.
2007-05-01 20:04:57 +02:00
Kalle Olavi Niemitalo
b35505c813
Cast variadic arguments of getml to void *.
...
getml reads the args with va_arg(ap, void *), and the NULL macro in
particular may have the wrong type.
2007-05-01 20:04:50 +02:00
Kalle Olavi Niemitalo
d00d702e7d
Fix compiler errors without HAVE_VARIADIC_MACROS.
2007-05-01 20:04:10 +02:00
Kalle Olavi Niemitalo
2e3ebffcd3
string_assert: First arg of elinks_internal is a format string.
2007-05-01 19:59:04 +02:00