Kalle Olavi Niemitalo
fb966b87a3
Merge branch 'elinks-0.12' into elinks-0.13
...
Conflicts:
doc/Doxyfile.in
2008-03-15 19:24:51 +02:00
Kalle Olavi Niemitalo
5419414b59
Bug 991: Tell users not to quote % in MIME handlers.
...
ELinks quotes the file name automatically and user-written quote
characters would just interfere with that.
2008-03-08 21:20:58 +02:00
Witold Filipczyk
a6966e9472
Bug 991: Replace '%s' by % in the mailcap.c
...
Currently, when ELinks passes the name of a local file to an external
MIME handler program, it encodes the name as a URI. Programs
typically do not expect this, and they then fail to open the file.
ELinks should instead quote the file name for the shell.
Unfortunately, Debian has lines like this in /etc/mailcap:
audio/mpeg; xmms '%s'; test=test "$DISPLAY" != ""
If ELinks were changed to replace the %s with e.g.
'/home/Kalle/doc/Topfield/How to upgraded the Firmware(English).pdf'
(quotes included), then the quotes would cancel out and the shell
would split the file name into multiple arguments. That could even
provide a way for malicious persons to make ELinks run arbitrary
shell commands.
The examples in RFC 1524 all have %s without any quotes.
Debian has two bug reports about the quoting behaviour:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=90483
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=221717
This patch therefore tries to detect whether the %s has been quoted
already, and remove the quotes if so. That way, the next patch will
be able to safely add its own quotes. This removal of quotes applies
only to mailcap files; MIME handlers defined in elinks.conf should
already be in the format preferred by ELinks.
(The patch was attachment 438 of bug 991, by Witold Filipczyk.
This commit message was written by Kalle Olavi Niemitalo.)
2008-03-08 21:20:57 +02:00
Miciah Dashiel Butler Masters
3a0286e447
Strings corrections from Malcolm Parsons
...
Fix the spelling and grammar in various comments, variable names, comment
descriptions, and documentation.
2008-01-27 04:19:23 +00:00
Miciah Dashiel Butler Masters
643a34e6af
Strings corrections from Malcolm Parsons
...
Fix the spelling and grammar in various comments, variable names, comment
descriptions, and documentation.
2008-01-27 04:09:18 +00:00
Miciah Dashiel Butler Masters
ae88223664
Make sure to always check or assert the result of get_opt_rec
...
Most callers already check. Add checks to commit_option_values, checkout_option_values, and get_content_type_default.
2007-12-21 22:49:38 +00:00
Jonas Fonseca
0240c469b7
Merge branch 'elinks-0.12'
...
Conflicts:
src/document/dom/renderer.c
2007-09-09 18:25:49 +02:00
Jonas Fonseca
bbd7c8354a
Move get_test_opt to util/test.h and use throughout test programs
2007-08-28 20:34:17 +02:00
Jonas Fonseca
0f53941fef
Introduce test library in util/test.h containing the die() function
...
Fix the die() function to exit with EXIT_FAILURE value as pointed
out by Kalle on elinks-dev in <87tzqkxhlp.fsf@Astalo.kon.iki.fi>.
2007-08-28 20:14:08 +02:00
Miciah Dashiel Butler Masters
ea372bd0cd
get_opt_*: Add ses parameter
...
Add a session parameter to get_opt_ and its wrappers in preparation for session-specific and domain-specific options.
2007-08-28 17:24:59 +00:00
Kalle Olavi Niemitalo
d3d2bb26c5
New macro LIST_OF for better Doxygen support.
2007-07-26 22:45:51 +03:00
Jonas Fonseca
ba66ff37db
Simplify TESTDEPS maintainance by adding common objects in Makefile.lib
2007-05-26 14:04:29 +02:00
Jonas Fonseca
8bfab2242e
Fix 'make test' dependency when building test utility programs
...
Problems was caused by undefined symbols:
src/util/conv.c:308: undefined reference to `is_cp_utf8'
src/util/conv.c:320: undefined reference to `cp2u'
2007-05-26 13:46:12 +02:00
Kalle Olavi Niemitalo
68b069a657
Make MIME backend metadata const.
2007-02-04 13:34:48 +02:00
Kalle Olavi Niemitalo
22f7468013
Make arrays of option change hooks const.
2007-01-27 19:00:47 +02:00
Jonas Fonseca
7a42d2f41d
Clean out some unused variables
2006-06-06 16:33:16 +02:00
Jonas Fonseca
ae58ab8fd7
Fix to the new internal copiousoutput handling
2006-06-06 01:15:07 +02:00
Laurent MONIN
1d3656a317
Pass a pointer to a hash pointer to free_hash() to ensure hash pointer
...
is NULL on return.
2006-05-31 19:33:36 +02:00
Laurent MONIN
54099f5286
Do not export init_hash(),strhash() and hash_size() anymore, use a
...
wrapper named init_hash8() instead.
2006-05-31 19:17:01 +02:00
Miciah Dashiel Butler Masters
8147b0f149
MIME: get_mime_handler_option: Eliminate an unnecessary check.
2006-05-05 21:35:02 +00:00
Miciah Dashiel Butler Masters
675fc46987
MIME: Let get_mime_handler_option take the MIME type's option instead
...
of its name.
2006-05-05 21:32:04 +00:00
Miciah Dashiel Butler Masters
e6d35d8f31
MIME: get_mime_handler_default: Rename stuff.
...
Rename local variables opt to type_opt and opt_tree to handler_opt.
2006-05-05 21:28:05 +00:00
Miciah Dashiel Butler Masters
9337a7993d
MIME: get_mime_handler_default: Reflow logic.
2006-05-05 21:25:43 +00:00
Miciah Dashiel Butler Masters
06a541487e
MIME: get_mime_handler_option: More option API usage, less string
...
manipulation.
2006-05-05 21:21:42 +00:00
Miciah Dashiel Butler Masters
8f4b40d4a0
MIME: get_mime_handler_option: Rename local variable opt to type_opt
2006-05-05 21:15:41 +00:00
Miciah Dashiel Butler Masters
386684fe50
MIME: get_mime_type_option: Re-arrange
...
More option API usage, less string manipulation.
2006-05-05 21:09:21 +00:00
Miciah Dashiel Butler Masters
9bc5317b13
MIME: Re-arrange
...
Let get_mime_type_name return an option instead of a name, and rename
it to get_mime_type_option.
2006-05-05 20:58:30 +00:00
Miciah Dashiel Butler Masters
680a1c735b
MIME: Re-arrange
...
Let get_mime_handler_name return an option instead of a name, and rename
it to get_mime_handler_option.
2006-05-05 20:50:45 +00:00
Witold Filipczyk
6ead4e9c65
Copiousoutput final stage. I doubt that /dev/fd/%d is portable. It works
...
at least under Linux. I didn't test network part of external handlers.
Files in tmpdir must be delete somehow. Maybe make a list of files
to unlink and delete them while quitting ELinks.
2006-05-04 21:19:30 +02:00
Witold Filipczyk
8ebcddeff4
Some day in the future ELinks will handle copiousoutput without external
...
pagers. Only a small step for now
2006-05-04 17:42:19 +02:00
Jonas Fonseca
4de26051b9
Ignore test files
2006-01-31 22:23:22 +01:00
Jonas Fonseca
3f659f7876
Fix the mailcap test program's dependency on gettext
2006-01-21 08:32:17 +01:00
Jonas Fonseca
2748d043f9
Autogenerate .vimrc files and put the master in config/vimrc
...
This changes the init target to be idempotent: most importantly it will now
never overwrite a Makefile if it exists. Additionally 'make init' will
generate the .vimrc files. Yay, no more stupid 'added fairies' commits! ;)
2006-01-15 18:38:58 +01:00
Jonas Fonseca
2a11525d1a
Fix a few typos
2006-01-06 22:32:07 +01:00
Jonas Fonseca
3fd2828fb0
Add a simple test script of the mailcap cache
...
It has a few nasty hacks to reduce the dependencies on defined symbols.
2006-01-06 22:18:11 +01:00
Laurent MONIN
3f3b18e53b
Indentation fix.
2006-01-02 10:50:49 +01:00
Jonas Fonseca
021af4e87c
Although aware ELinks doesn't need another sgml/doctype here is DocBook
...
It was created a long time ago so (I think) it deserves to survive. It
maps .sgml files to applicatino/docbook+xml and uses the highlighter.
2006-01-01 23:22:10 +01:00
Jonas Fonseca
9a0bf83756
Add basic stuff for XBEL parsing/highlighting using the DOM engine
2005-12-30 22:19:32 +01:00
Jonas Fonseca
7679ccd881
Associate .rss file extension with application/rss+xml
2005-12-20 17:00:33 +01:00
Laurent MONIN
df065ead80
Remove now useless $Id: lines.
2005-10-21 09:14:07 +02:00
Jonas Fonseca
c88afeb1c2
path_to_top -> top_builddir
2005-10-20 04:00:35 +02:00
Jonas Fonseca
e39a4342d6
Include $(top_srcdir)/Makefile.lib instead of $(path_to_top)/Makefile.lib
...
A step towards out of tree builds ...
2005-10-20 01:11:47 +02:00
Jonas Fonseca
94ed6fa754
Finalize and cleanup the denser Makefile format
...
Convert remaining conditional file building to use
OBJS-$(CONFIG_FOO) += foo.o
one problem with reverse meaining (in util/) fixed with local 'hack'.
Cleanup and remove stuff which is now default targets.
2005-09-28 12:38:17 +02:00
Jonas Fonseca
1efab31581
Simplify building of and linking with directories
...
Ditch the building of an archive (.a) in favour of linking all objects in a
directory into a lib.o file. This makes it easy to link in subdirectories
and more importantly keeps the build logic in the local subdirectories.
Note: after updating you will have to rm **/*.a if you do not make clean
before updating.
2005-09-27 21:38:58 +02:00
Jonas Fonseca
b30064c0d0
Rename targets: *-l -> *-local
2005-09-27 21:11:28 +02:00
Petr Baudis
885bb75c66
Typo fix.
2005-09-16 13:58:56 +02:00
Petr Baudis
68b55a8fcb
ELBuildized mime/.
2005-09-16 13:36:47 +02:00
Jonas Fonseca
7462f22635
Remove now obsolete .cvsignore files.
2005-09-15 18:33:20 +02:00
Petr Baudis
0f6d4310ad
Initial commit of the HEAD branch of the ELinks CVS repository, as of
...
Thu Sep 15 15:57:07 CEST 2005. The previous history can be added to this
by grafting.
2005-09-15 15:58:31 +02:00