Jonas Fonseca
c96cb0bbae
DIRLIST: Use directory listing initializer in the file protocol module
2006-01-30 01:25:18 +01:00
Jonas Fonseca
865af9ac4a
DIRLIST: Add helper to at start of (HTML) directory listing
2006-01-30 01:22:31 +01:00
Jonas Fonseca
7d1ff4fbf1
Only add ending slash to directory URLs
...
Not even to directory names. We don't do that for file: or ftp: protocol.
Fixes: af2cc87054
2006-01-29 18:35:59 +01:00
Laurent MONIN
cf429c4ecc
FSP: trim trailing whitespaces.
2006-01-29 18:01:48 +01:00
Laurent MONIN
af2cc87054
FSP: display_entry() cleanup, and mark directories by an ending /
...
in lists.
2006-01-29 18:01:22 +01:00
Laurent MONIN
0c4bc5a362
FSP: reduce code redundancy, introducing display_entry().
2006-01-29 17:53:26 +01:00
Laurent MONIN
d07cf588bd
FSP: reduce code redundancy.
2006-01-29 17:48:09 +01:00
5511c5b748
Merge with git+ssh://pasky.or.cz/srv/git/elinks.git
2006-01-29 16:51:11 +01:00
5c607c1ce8
Check for python
2006-01-29 16:48:33 +01:00
87e27b9b3e
goto_url_hook takes 2 params not 1. Some dumbprefixes defined in hooks.py
2006-01-29 14:58:03 +01:00
Jonas Fonseca
a236608554
Do not set the content type for FSP files
...
Simplify commit 8d4f44f2f1
, in particular
detecting MIME types for files. It is more consistent to do it the way
it was already done by the session/download code.
Instead, write a NUL byte to stderr when getting FSP files and only set
cache->content_type when the header string is non-empty.
Additionally it also moves close(stderr) after the fsp_error() in the
file handling part of do_fsp() so the error message is shown with the
correct type.
2006-01-29 14:27:14 +01:00
46aae704eb
Added slash to base href when directory didn't end with '/'
2006-01-29 13:22:05 +01:00
Jonas Fonseca
0cb0d0aaae
Add Eric Wald to authors
2006-01-29 12:59:48 +01:00
8cc828bf7c
Compilation fix
2006-01-29 12:28:05 +01:00
Jonas Fonseca
9fe0608bd2
DOM: Fix checking of out-of-bound access to scanned strings
2006-01-29 12:12:41 +01:00
Jonas Fonseca
ca5a5f230a
Make render_dom_node_source static
2006-01-29 12:11:35 +01:00
Jonas Fonseca
2e3e18595f
Normalize all links added by the plain renderer
...
Fixes problems with host or protocol parts not being lowercased. This
triggers an assertion failure when trying to download such links. Reported
by lindi-.
2006-01-29 09:04:52 +01:00
Jonas Fonseca
2918e3f595
DOM: Add STATIC_DOM_STRING macro and make INIT_DOM_STRING cleaner
2006-01-28 22:55:15 +01:00
Jonas Fonseca
58b8635caf
DOM: Add test to check that '\f' (form feed) counts as a newline
2006-01-28 22:51:52 +01:00
cb6a63f09e
Translation fixes
2006-01-28 22:06:10 +01:00
c518a9f06a
Compilation fix when --without-openssl was used
2006-01-28 22:03:46 +01:00
669d4af154
Compilation fixes
2006-01-28 20:54:11 +01:00
645689f1aa
I have no idea why it is still crashing. This is last attempt
...
today to fix it
2006-01-28 19:57:40 +01:00
Jonas Fonseca
20f5b76bb2
ECMASCRIPT: Fix unused SEE specific variables when using spidermonkey
2006-01-28 18:26:45 +01:00
de468660f1
Merge with git+ssh://pasky.or.cz/srv/git/elinks.git
2006-01-28 17:20:22 +01:00
71871edd43
Maybe this time it won't crash
2006-01-28 17:08:45 +01:00
Jonas Fonseca
c223f6ce94
Sed the expected output instead of the output from sgml-parser
2006-01-28 15:12:49 +01:00
Jonas Fonseca
03c467bcbf
Move URI normalization to the test library
2006-01-28 15:03:19 +01:00
7c7541f4d1
parent, self and top are the same since now
2006-01-28 14:15:55 +01:00
52d3a6411d
Sort links when necessary
2006-01-28 14:13:41 +01:00
dacb694e33
Merge with git+ssh://pasky.or.cz/srv/git/elinks.git
2006-01-28 12:11:29 +01:00
997f61bb32
Use document_view instead of view_state. It is safer probably
2006-01-28 12:07:00 +01:00
9cc9db4e24
Handling onsubmit
2006-01-28 11:17:22 +01:00
6e4c80a29e
Avoid memleak
2006-01-28 08:37:58 +01:00
Jonas Fonseca
6a592b073c
BUILD: Do not create .vimrc files
...
They are considered insecure, use the newly added ftplugin instead. This
also removes the config/vimrc master file.
2006-01-28 05:25:02 +01:00
Eric Wald
c6ba201e0c
CONTRIB: Add ftplugin for setting Vim to the ELinks coding style
...
This will replace the .vimrc infrastructure currently used, which is
considered insecure.
2006-01-28 05:21:45 +01:00
Jonas Fonseca
99067f0497
Merge with git+ssh://pasky/srv/git/elinks.git
2006-01-28 04:52:04 +01:00
Jonas Fonseca
b6b6d3c67e
DOM: Allocate all node strings when doing incremental rendering
...
This changes init_dom_node_() to take an allocated argument saying whether
to allocate or not. If the value is -1, node->allocated will be set to the
value of node->parent->allocated. This way the value is inherited like we
do it in the menu code. It should be a sane default since we eventually
want not to rely on the 'underlying' source of the document and there will
be less variables to pass around.
2006-01-28 04:51:25 +01:00
Jonas Fonseca
24a9d103b4
DOM: Add allocated flag to struct dom_node; replaces subtype flags
...
Prepare for handling of allocated strings in the various nodes.
2006-01-28 04:50:04 +01:00
Miciah Dashiel Butler Masters
2e9d433402
SMJS: mangle_deb_bugnumbers: add <pre>; set rendered view
...
Use the newly available view_state object to change to rendered view
and wrap everything in <pre> ... </pre> if the document MIME type is
text/plain.
2006-01-28 03:27:45 +00:00
Miciah Dashiel Butler Masters
495fb2805b
SMJS: Give user scripts access to the view_state
...
Introduce the view_state object to ECMAScript with properties .uri and
.plain and pass the current view_state to preformat hooks.
2006-01-28 03:27:45 +00:00
Jonas Fonseca
3b183c1685
Merge with git+ssh://pasky/srv/git/elinks.git
2006-01-28 03:36:47 +01:00
Jonas Fonseca
95c1de2315
Fix handling of incomplete processing instructions
...
When doing incremental rendering we now require the whole thing to be there
and that there is room for two tokens in the scanner token table. This is
necessary because we have to generate both a processing target token and a
processing data token to make life simpler for the parser.
Remove processing instruction data case label from the main parser loop. It
is safer this way since it already assumes that the processing target token
has been stored.
2006-01-28 03:35:36 +01:00
Jonas Fonseca
823c594524
Use ssize_t instead of size_t for length since it must carry a signed value
2006-01-28 03:24:16 +01:00
Jonas Fonseca
00c4e0bfa2
Do not attempt to read *string when string == scanner->end
...
There might be other places that needs to be reviewd for this.
2006-01-28 03:23:06 +01:00
Jonas Fonseca
d92a074e40
Fix parsing of '<a< b>' where the scanner didn't rewind to the proper place
...
Add test for this tag soup combo.
2006-01-28 03:21:27 +01:00
Laurent MONIN
5114c9d110
Trim trailing whitespaces.
2006-01-28 01:59:22 +01:00
Laurent MONIN
bae3b58146
Fix a potential memleak.
2006-01-28 01:58:00 +01:00
Jonas Fonseca
e5e06764c4
Improve checks for incompleteness when parsing attributes
...
Check whether there are '=' and value tokens before handling them. If there
is any doubt the whole attribute structure is 'pushed back' into the
stream. That way incremental parsing will not add the value as a new
attribute because the name token was handled in the previous parsing run.
2006-01-28 01:40:56 +01:00
Jonas Fonseca
4ab1dde874
Preserve the scanner state when it is not the 'default' state
...
This is necessary to make it possible to resume parsing of element
attributes. Allows the incomplete string in the parsing state struct to
be unset.
2006-01-28 01:24:30 +01:00