1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00
Commit Graph

1039 Commits

Author SHA1 Message Date
Kalle Olavi Niemitalo
7c0027bf26 Bug 937, http_send_header: Don't send all headers to CONNECT proxy.
Backported from ELinks 0.12.GIT (4e4dddb4cc).
2007-02-25 15:17:03 +02:00
Jens Seidel
4270182455 [INTL:de] German PO file corrections
[ From Debian bug 313696 --KON ]
2007-01-04 09:39:39 +02:00
Kalle Olavi Niemitalo
1f65dd2802 Bug 919, mem_mmap_realloc: Don't overflow the buffer when shrinking it.
The bug was possible only #ifndef HAVE_MREMAP, thus not on Linux.

Backported from ELinks 0.12.GIT (4ae90c798c).
2007-01-02 20:43:58 +02:00
Jonas Fonseca
d18333075d Bug 899: Fix size handling in FTP directory listings
This fixes parse_ftp_number to use off_t instead of long to store its
(intermediate) result and return type. It also introduces an OFFT_MAX type
"limit" that is used for validating the size of the parsed number.

A test-case for was added in 37c9bf3f75 to
test-ftp-parser and the patch has been confirmed to fix the test-case by
adamg and me.  This closes bug 899, which is a duplicate of debian bug
403139.
2006-12-18 18:55:21 +01:00
Adam Golebiowski
fbe800e685 Small typo in polish translation. 2006-12-06 11:02:27 +01:00
Adam Golebiowski
308de298a6 Polish translation was updated. 2006-12-05 20:37:21 +01:00
Jonas Fonseca
a81e623492 Merge with git+ssh://pasky/srv/git/elinks#elinks-0.11 2006-12-04 21:59:49 +01:00
Jonas Fonseca
5e0dcf1aaf Bug 831: Make it possible to quote args given to -remote
This fixes the problem with URLs that contain commas and are passed to
ELinks using: -remote openURL(URL). Fixes bug 831.
2006-12-04 21:59:18 +01:00
Kalle Olavi Niemitalo
8751524424 Bug 830: Check -remote command names more strictly.
doc/remote.txt says there must be a nonempty sequence of ASCII
alphabetic characters before the opening parenthesis.  Check that
they really are ASCII characters and that the sequence is nonempty.
Thus, elinks -remote '(foo)' now treats the string as an address,
rather than as a command.
2006-12-04 21:58:33 +01:00
Jonas Fonseca
dbfb34f395 Fix misparsing of -remote URLs containing parenthesis (bug 830)
Be more strict about the format accepted by the ELinks specific extension
to the -remote URL syntax. That is, commands must begin with a nonempty
sequence of ASCII alphabetic characters followed by optional whitespace and
an opening parenthesis. Also, document the syntax.

Fixes bug 830.
2006-12-04 21:58:21 +01:00
Kalle Olavi Niemitalo
796791296a Bug 870: Don't panic if an SMJS property ID is unrecognized.
If ECMAScript code does obj[42], then the getProperty or setProperty
function of the JSClass of obj gets 42 as the property ID and must not
treat that as an internal error.

(Adapted from 7894e30ace in ELinks 0.12.GIT.)
2006-12-03 12:38:59 +02:00
Kalle Olavi Niemitalo
aac8f4582f Bug 846: {get,set}Property check JS_InstanceOf without asserting.
The getProperty and setProperty functions of a JSClass must not assume
that the obj parameter points to an instance of that class.  It might
instead point to another object that merely has an instance of the
class in its prototype chain.  Thus, do not assert that JS_InstanceOf
returns true there.  Instead, run the check even with CONFIG_FASTMEM,
and just return JS_FALSE if it fails.

(Adapted from aa410301f1 in ELinks 0.12.GIT.)
2006-12-03 12:30:41 +02:00
Kalle Olavi Niemitalo
5b9ea6a4ee Bug 868: check_timers: Don't keep pointers to other timers past timer->func. 2006-12-02 21:28:36 +02:00
Jonas Fonseca
45ccd0f0c9 Add a stupid test script to print CGI variables set by ELinks
To use it to test whether that CGI works put the following in your
elinks.conf:

      set protocol.file.cgi.policy = 1
      set protocol.file.cgi.path = "/path/to/elinks/test/cgi"

Then point ELinks to the print-vars.sh script inside the CGI test directory
in the ELinks source directory.
2006-11-30 16:25:49 +01:00
Miciah Dashiel Butler Masters
ba73ca408d Update Lua configure check for 5.0
Use the new names instead of the deprecated names to increase
the likelihood that later versions, which might lack the
backwards-compatibility wrappers, will work.
2006-11-27 18:36:52 +01:00
witekfl
aa56bff974 spec: s/gawk/awk/ 2006-11-27 18:28:30 +01:00
witekfl
569694a8be >& is bashism 2006-11-27 18:27:55 +01:00
Timo Lindfors
00ed4bf3ef Fix bug #741: "html comments shouldn't be evaluted inside STYLE elements" 2006-11-27 18:27:40 +01:00
Petr Baudis
78bcc240db Tidyup. 2006-11-27 18:26:41 +01:00
Russ Rowan
f5dc223f2f Scary stuff indeed. 2006-11-27 18:26:13 +01:00
witekfl
7fb319fd36 Removed *.html and fixed typos 2006-11-27 18:21:07 +01:00
Jonas Fonseca
e189a7e114 Make ELinks more BSD console friendly
Conditionally define keys, such as DEL, when compiling on a system having
the BSD console system headers.

A combination of the changes:
	791cab91e7
	cfbe41aa8a
	fae675316b
2006-11-27 18:18:06 +01:00
Eric Wald
c38e8dc40b Add support for forcing wrapping at the screen boundary
This patch modifies ELinks wrapping behavior slightly.

 * The wrap command now toggles line wrapping in HTML mode, as well as
   text mode.  Note that when the HTML view of a page is wrapped, its
   source view is unwrapped, and vice versa.
 * Tabs in text-mode lines are now handled correctly.
 * Wrapping a line that reaches exactly to the edge of the screen will
   no longer produce a blank line in text mode.
 * Text within extra-wide table cells is now wrapped to less than the
   screen width, to eliminate sideways scrolling.

The last point is only enabled by setting TABLE_LINE_PADDING to a
non-negative number, in the src/setup.h header file, because it is a
significant change of behavior from previous versions.
2006-11-27 18:10:18 +01:00
Miciah Dashiel Butler Masters
4b1425f762 Initially place cursor on the current listbox item
Introduce the macros before_widgets and foreach_widget_back. Use the
latter in update_all_widgets instead of foreach_widget so that the
widgets are printed in reverse order, which means that any listbox is
drawn last, which allows it to grab the cursor from the selected button
when the dialogue box is initialised or redrawn.

Requested by Kirk Reiser for great usability with screen readers.
2006-11-27 18:09:25 +01:00
Petr Baudis
90ce4ed5d4 Cure few of my ie.-vs-e.g. sins 2006-11-27 18:07:07 +01:00
witekfl
372d32ccec Add slash after host required by URI_HTTP_REFERRER_HOST 2006-11-27 18:05:41 +01:00
Laurent MONIN
734f964714 Fix segfaults caused by ruby scripting (gentoo bug #121247). Backported
from gentoo portage tree.
2006-11-27 18:03:49 +01:00
Laurent MONIN
bcabd8b795 Fix compilation under gcc 4.x. Backported from gentoo portage. 2006-11-27 18:03:49 +01:00
Jonas Fonseca
974e48f714 BUILD: Always show manual and manpage build info, remove AC_SUBST dups 2006-11-27 17:55:18 +01:00
Jonas Fonseca
b0a0527c9f Describe the document.uri_passing option in more depth
Mention the *-external-command actions.
2006-11-27 17:53:41 +01:00
Miciah Dashiel Butler Masters
cd7ad685f7 refresh_view: drop unnecessary call to redraw_from_window
print_screen_status calls redraw_from_window, so there is no need to
call both.
2006-11-27 17:50:58 +01:00
Jonas Fonseca
9090b68bd6 FSP: Check and exit the file 'writer' process if writes to stdout fails
This ensures that the 'writer' process will remove itself when the
main ELinks process for some reason decides to shutdown the connection.
Before the 'writer' process would complete it's task taking up unnecessary
system resources.

This is mostly an issue when fetching big files. Therefore only file
fetching is fixed. FIXME added about also checking return codes for write
associated with directory listing.

Reported-by: zas
2006-11-27 17:46:51 +01:00
Laurent MONIN
135a79a3c3 Include <sys/types.h> and fix compilation on an old PPC/Debian system
It should be included via elinks.h but apparently some other system header
can prevent this somehow on some systems.

Reported-by: Phillip Pi <ant@zimage.com>
2006-11-27 17:38:00 +01:00
Jonas Fonseca
2c40cb003c Ignore test files 2006-11-27 17:36:29 +01:00
witekfl
b05a2e0998 Info about Python scripting 2006-11-27 17:19:10 +01:00
witekfl
8bedf25bf8 goto_url_hook takes 2 params not 1. Some dumbprefixes defined in hooks.py 2006-11-27 17:13:02 +01:00
witekfl
e1ae6a0cdf Added slash to base href when directory didn't end with '/' 2006-11-27 17:08:18 +01:00
witekfl
d580483c6b Compilation fix 2006-11-27 17:07:13 +01:00
witekfl
79275b060e Compilation fix when --without-openssl was used 2006-11-27 17:05:06 +01:00
Miciah Dashiel Butler Masters
8dabb246ae Use enum connection_state
Use enum connection_state instead of int in load_uri,
proxy_uri, get_proxy_worker, and get_proxy_uri. See commit
d18809522e. I hope that satisfies TCC.
2006-11-27 17:04:43 +01:00
witekfl
522ee24ab8 Compilation fixes 2006-11-27 17:03:34 +01:00
Jonas Fonseca
af7ce38639 BOOKMARKS: Fix XBEL calling add_bookmark() with NULL title
It didn't check that both title and title->text was non NULL. In either
case it now passes "No title" string to add_bookmark().

Reported by Neuromancer.

Tested with both:

	<bookmark href="empty://title"><title></title><bookmark>
	<bookmark href="no://title"></bookmark>
2006-11-27 16:56:12 +01:00
Kalle Olavi Niemitalo
67d6474684 Bug 846: Document the expected parents of form_elements_class instances.
This should have been in commit 92290b73a9.
The corresponding commit e76e047196 in the
REL_0_10 branch does include it.
2006-11-26 19:06:28 +02:00
Kalle Olavi Niemitalo
f2854e19ba SMJS: keymap_get_property: fix build error
Fix an error in the order of variable initialisation that was introduced
in commit 9a829b3277.

(Copied from a2c48b4d91fe6c6998836deca73eb93d324630df in ELinks 0.12.GIT.)
2006-11-26 15:57:52 +02:00
Miciah Dashiel Butler Masters
a44e72161f SMJS: keymap_set_property: fix build error
Fix an error in the order of variable initialisation that was introduced
in commit 9a829b3277.

(Copied from eaed0315993b07a20211b151a53ba7bd4553dff0 in ELinks 0.12.GIT.)
2006-11-26 15:54:35 +02:00
Kalle Olavi Niemitalo
0744d96213 Bug 846: Add plenty of JS_InstanceOf assertions and checks.
(Adapted from 47dce0922b in ELinks 0.12.GIT.)
2006-11-25 21:24:25 +02:00
Kalle Olavi Niemitalo
9a829b3277 Bug 846: Separate JS_GetParent & JS_GetPrivate calls from initializations.
This will allow the types of objects to be checked before those calls.

(Adapted from bbf0d478e9 in ELinks 0.12.GIT.)
2006-11-25 21:14:56 +02:00
Kalle Olavi Niemitalo
4c58b4c56c Bug 846: Rename some local variables.
Rename parent to parent_win if it points to an instance of window_class.

(Adapted from 98a120b3d5 in ELinks 0.12.GIT.)
2006-11-25 21:01:53 +02:00
Kalle Olavi Niemitalo
59df2a3d11 Bug 846: Document the JSClass assumed in each JS_{Set,Get}Private call.
(Adapted from 356678dd80 in ELinks 0.12.GIT.)
2006-11-25 20:56:09 +02:00
Kalle Olavi Niemitalo
92290b73a9 Bug 846: Document the expected parents of SMJS class instances.
(Copied from 36f5f73a60 in ELinks 0.12.GIT.)
2006-11-25 20:50:34 +02:00