1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-27 02:56:18 -04:00
Commit Graph

67 Commits

Author SHA1 Message Date
Witold Filipczyk
48230a79e4 [win32] compilation fix 2024-09-02 14:13:41 +02:00
Witold Filipczyk
43f970d1f4 [data] Added image/jxl as well. Refs #261 2023-08-22 08:25:07 +02:00
Witold Filipczyk
365f1075b8 [data] string parameter was not used 2023-08-21 16:18:09 +02:00
Witold Filipczyk
9820cefba6 [data] Add extension .svg for image/svg+xml . Refs #261
The first idea was to add a function for mapping content-type -> extension,
but this change is only one line of code.
2023-08-21 14:36:23 +02:00
Azamat H. Hackimov
393bf23a26 Fix compilation with Perl 5.38
Perl now includes own `struct object` which clashes with elinks
implementation. Renamed `struct object` to `struct elinks_object` to
avoid it.

Bug: https://bugs.gentoo.org/909042
2023-07-03 14:12:22 +03:00
Witold Filipczyk
dc37be3b60 [uri] Encode only bytes with highest bit set. Refs #226
It is not good, but before it was worse.
Characters like ? and = were encoded.
2023-04-27 14:28:19 +02:00
Witold Filipczyk
7a665d8de4 [uri] Introduced function encode_uri_string_percent. Refs #221
This function is similar to encode_uri_string, but does not
encode percents.
2023-04-23 15:05:58 +02:00
Witold Filipczyk
acf7527624 [idn] Back to idn2_to_ascii_8z
Previous function did not work under DOS for me.
2023-01-03 17:16:03 +01:00
Robert Scheck
b8ae8297e8 Port ELinks to libidn2
Bug: https://bugzilla.redhat.com/1098789
2023-01-02 09:28:34 +01:00
Witold Filipczyk
9cb4f4544e [test] compilation fixes 2022-10-03 19:38:22 +02:00
Witold Filipczyk
8c2f1092f6 [uri] Do not return earlier. Check also POST 2022-09-27 19:54:24 +02:00
Witold Filipczyk
57ac78bcdd [protocol] Added option protocol.default_protocol . Refs #174 2022-06-14 18:43:09 +02:00
Witold Filipczyk
47a9356259 [idn] convert_string instead of iconv 2022-06-06 16:04:06 +02:00
Witold Filipczyk
22e8a83472 [idn] Convert domain name to utf-8 from gettext codepage. 2022-06-01 22:24:07 +02:00
Witold Filipczyk
852e024c40 [uri] Let enter c:\ in goto url dialog 2022-05-10 21:11:48 +02:00
Witold Filipczyk
0e7507b285 [dos] Do not define CONFIG_OS_UNIX for DOS 2022-05-10 20:19:42 +02:00
Witold Filipczyk
a576245561 [cache] const in redirect_cache 2022-02-21 17:13:14 +01:00
Witold Filipczyk
bd27d9a793 [uri] uri_errno_T 2022-01-28 17:22:11 +01:00
Witold Filipczyk
77c47f0096 [protocol] enum protocol -> protocol_T 2022-01-28 17:19:11 +01:00
Witold Filipczyk
28a263eac7 [uri] enum uri_component -> uri_component_T 2022-01-28 15:56:59 +01:00
Witold Filipczyk
20aea2ceaf [session] cast 2022-01-26 17:51:52 +01:00
Witold Filipczyk
53a860a3d6 [strchr] casting first parameter to const char * was not a good idea 2022-01-18 20:30:48 +01:00
Witold Filipczyk
881f896e85 [mem_calloc] Cast 2022-01-16 21:08:50 +01:00
Witold Filipczyk
20c161559c [mem_alloc] cast return value 2022-01-16 19:09:27 +01:00
Witold Filipczyk
0e8ee7876a [uri] 0 -> URI_NONE in get_uri to decrease number of warnings 2022-01-14 20:52:17 +01:00
Witold Filipczyk
0fea79cc8f [cflags] Removed -Wno-pointer-sign
Likely some new bugs were introduced by this change.
The long term goal is clean compilation by g++.
2021-01-02 16:20:27 +01:00
Witold Filipczyk
2d80e93146 [uri] Check for null. Closes #72 2020-09-29 11:59:11 +02:00
sgerwk
526b0d0ff9 use appropriate functions for string allocation and concatenation 2020-09-29 11:36:36 +02:00
sgerwk
90a141be2b meaningful default save name for data: uri content 2020-09-28 20:10:55 +02:00
Guido Cella
a26c5956f4 [ssl] Let requests default to https 2020-06-25 10:40:59 +02:00
Witold Filipczyk
3d96b0d7d7 Revert "Compile with C++."
This reverts commit 4f4df33638.
2019-04-21 12:27:40 +02:00
Witold Filipczyk
4f4df33638 Compile with C++.
Weak points:
- alignof
- js problems

Todo:
- make js work with C++ and mozjs-17
- then mozjs-24
- then mozjs-52
- then mozjs-60
- decrease number of warnings
2019-02-17 20:46:16 +01:00
Witold Filipczyk
52d6f37c8e Explicit cast to (const char *) for strchr function (C++) 2016-04-20 19:43:37 +02:00
Witold Filipczyk
06f0dff43f expert is also proper suffix. 2015-01-02 13:53:10 +01:00
Witold Filipczyk
bdfb3ec754 bug 1145: The freecode.com successor has the URL "freecode.club" but "club"
is not recognized as a TLD. Patch by Dr. Markus Waldeck
2014-09-22 21:47:53 +02:00
M. Vefa Bicakci
20a7a6c460 Patch 3: Further fixes including strcasestr and convert_to_lowercase 2008-11-01 22:32:43 +02:00
M. Vefa Bicakci
96b3093519 Patch 2: Modifications to the remaining parts of ELinks
[Forward ported to 0.12 from bug 1004 attachment 499.  --KON]
2008-11-01 22:20:25 +02:00
Witold Filipczyk
8f46de65d6 bug 1000: Do not discard the query part of URI.
(cherry picked from commit 3a4c053bd5)
2008-03-02 17:45:29 +02:00
Miciah Dashiel Butler Masters
a46379a931 Move is_in_domain from cookies/cookies.c to protocol/uri.c and export 2007-09-14 16:51:04 +02:00
Jonas Fonseca
8393dc901e Bug 744: Make removal of double slashes more protocol specific
Add a boolean protocol flag which says whether "//" in the path
part of an URI can be safely substituted with "/". Be conservative
and enable it only for file://, ftp:// and nntp[s]://. Other
can be turned on later, if needed.

Generalizes the fix from 58b3b1e752.
2007-09-11 14:14:17 +02:00
Jonas Fonseca
58b3b1e752 Reinstate "canonicalization" of path names for file URIs
This reverts commit 4f0aaa166e
and insert check for the "//" -> "/" change only to occur for
file:// URIs. This fixes the recent reports on broken handling
of relative file URIs starting with "..".
2007-09-09 18:17:25 +02:00
Kalle Olavi Niemitalo
a2f3ec1ef7 Bug 744: More tests and fix failures. 2007-07-19 14:28:20 +03:00
Jonas Fonseca
4f0aaa166e Remove normalization of "//" to "/"
This patch changes normalize_uri() to no replace "//" with "/" in URIs. This
fixed this bug but will also lead to possibility that duplicate entries can
exist in ELinks' cache. ELinks might be able to detect in another way by
hashing the content or something.

[ From attachment 310 of bug 744.  --KON ]
2007-07-19 11:22:01 +03:00
Kalle Olavi Niemitalo
0cf15ca9d9 URI: Inline check_uri_file.
And reorder the characters in the string given to strcspn(), to match
their expected order in the URI.  This is also how strcspn() is called
elsewhere in uri.c.
2007-06-17 19:50:05 +03:00
Witold Filipczyk
581ef57bb4 URI file: Fixed. CGI scripts work, URI fragments work too. 2007-06-17 19:46:07 +03:00
Witold Filipczyk
4fe68ce6fd uri, file: Commented out broken code.
CGI scripts using GET method didn't work.
2007-06-17 19:45:55 +03:00
Kalle Olavi Niemitalo
b48a2d660d More const in URI functions.
Not yet all of them, though.
2007-03-18 09:57:29 +02:00
Kalle Olavi Niemitalo
801d520ddd Fix compiler errors without HAVE_VARIADIC_MACROS. 2007-03-11 12:22:02 +02:00
Witold Filipczyk
eef7924ff1 POST method of CGI did not work. It works now. 2007-03-10 13:45:35 +02:00
Kalle Olavi Niemitalo
d17005e23f encode_uri_string: Let name point to const. 2007-03-05 19:59:17 +02:00