1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-11-04 08:17:17 -05:00
Commit Graph

959 Commits

Author SHA1 Message Date
Kalle Olavi Niemitalo
9836e718cc NEWS: -remote changes don't deserve two separate entries. 2007-03-27 23:54:59 +03:00
Kalle Olavi Niemitalo
af82ab8af7 Advertise smb2.c to be included in ELinks 0.12.0. 2007-03-27 01:41:26 +03:00
Kalle Olavi Niemitalo
4829e4ad42 NEWS update
All relevant changes up to f135339a1a.
2007-03-27 01:19:52 +03:00
Kalle Olavi Niemitalo
f135339a1a 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.

[ From commit 4a23d7fd82 in ELinks
  0.12.GIT.  --KON ]
2007-03-18 21:18:02 +02:00
Witold Filipczyk
fd70a5b352 get_attr_value: do not do trim_chars
trim_chars was called only in debug mode and the results of the get_attr_val
for value=" something " in debug mode differ from normal and fastmem mode.

[ From commit e347122e6d in ELinks
  0.12.GIT.  --KON ]
2007-03-18 13:50:34 +02:00
Witold Filipczyk
8104dc80cd accesskey: start iterating with next link.
Rotating between links with the same accesskey works.

[ Backported from commit d2970e57af
  in ELinks 0.12.GIT.  --KON ]
2007-03-18 13:22:42 +02:00
Witold Filipczyk
94ff057a6c Accesskey didn't work as it should.
[ Backported from commit 682ad62a97
  in ELinks 0.12.GIT.  --KON ]
2007-03-18 13:21:36 +02:00
Kalle Olavi Niemitalo
518cf082db add_html_to_string: If out of memory, roll back and return NULL.
[ Backported from commits 28645973e5
  and b7dddaa685 in ELinks 0.12.GIT.
  --KON ]
2007-03-18 12:38:19 +02:00
Kalle Olavi Niemitalo
1c3c19c91b ftp, add_file_cmd_to_str: Check errors from string functions.
Use goto for error handling.  Free all strings in the same place.

[ Bug 942; backported from commit c6b8fa7151
  in ELinks 0.12.GIT.  --KON ]
2007-03-18 12:31:29 +02:00
Kalle Olavi Niemitalo
465166a940 Reject CR and LF characters in FTP pathnames.
[ Bug 942; backported from commit adfde652b9
  in ELinks 0.12.GIT.  --KON ]
2007-03-18 12:29:11 +02:00
Witold Filipczyk
feb3f21b34 ftp: ftp didn't handle filenames with spaces.
[ Bug 942; backported from commit 3f4de99f16
  in ELinks 0.12.GIT.  I omitted the part of the patch that decodes
  FTP URLs for HTML TITLE, because I think it's an enhancement rather
  than a bug fix.  --KON ]
2007-03-18 12:28:06 +02:00
Kalle Olavi Niemitalo
2f4b3dae69 string_assert: First arg of elinks_internal is a format string.
[ Backported from commit a73d165fd7
  in ELinks 0.12.GIT.  --KON ]
2007-03-11 14:02:17 +02:00
Kalle Olavi Niemitalo
0286a66c98 XBEL: Fix us-ascii charset lookup.
Previously, print_xml_entities did look up the charset, but did not
save the result anywhere and just used 0, leading to further lookups
in subsequent calls.  It worked by accident though, because the
codepage index of us-ascii currently is 0.

[ Backported from commit e325b748be
  in ELinks 0.12.GIT.  --KON ]
2007-03-11 14:01:08 +02:00
Kalle Olavi Niemitalo
fe886d198d textarea_edit: Cast size_t fx_maxlength to match "%u".
[ Backported from commit 0dfb88c802
  in ELinks 0.12.GIT.  --KON ]
2007-03-11 14:00:18 +02:00
Kalle Olavi Niemitalo
0b7097ca9f cgi: Avoid assertion failure when the POST data is empty.
[ Backported from commit 701e7e3e64
  in ELinks 0.12.GIT.  --KON ]
2007-03-11 13:57:34 +02:00
Witold Filipczyk
daf5d88405 cgi: Fix the possible memleak and close pipes in case of error.
[ Backported from commit 035ce283c7
  in ELinks 0.12.GIT.  --KON ]
2007-03-11 13:55:30 +02:00
Witold Filipczyk
a64dd281e9 POST method of CGI did not work. It works now.
[ Backported from commit eef7924ff1
  in ELinks 0.12.GIT.  --KON ]
2007-03-11 13:50:09 +02:00
Kalle Olavi Niemitalo
8d9837a015 cgi: Ensure correct type of NULL pointer to variadic execl.
[ Backported from commit 4c636d74f1
  in ELinks 0.12.GIT.  --KON ]
2007-03-11 13:48:36 +02:00
Witold Filipczyk
4a624fceb8 cgi: set_nonblocking_fd
[ Backported from commit 2828d587b2
  in ELinks 0.12.GIT.  --KON ]
2007-03-11 13:47:26 +02:00
Kalle Olavi Niemitalo
7fdad68e7e Bug 937, http_send_header: Initialize the entry pointer.
In ELinks 0.12.GIT, it was already initialized before the bug 937 fix.
2007-02-25 17:11:38 +02:00
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