ikiwiki/IkiWiki/Plugin
Adeodato Simó be0b4f603f Allow colons in URLs after the first slash
A new regexp fixes this bug:
http://ikiwiki.info/bugs/No_link_for_blog_items_when_filename_contains_a_colon/

I traced this down to htmlscrubber. If disabled,
it works. If enabled, then $safe_url_regexp
determines the URL unsafe because of the colon and
hence removes the src attribute.

Digging into this, I find that RFC 3986 pretty
much discourages colons in filenames:

"""
A path segment that contains a colon character
(e.g., "this:that") cannot be used as the first
segment of a relative-path reference, as it would
be mistaken for a scheme name. Such a segment must
be preceded by a dot-segment (e.g., "./this:that")
to make a relative- path reference.
"""

on the other hand, with usedirs, any link to
another page will be prepended by ../ anyway, so
that makes them okay again.

The solution still seems not to use colons.

In any case, htmlscrubber should get a new regexp,
courtesy of dato.

I have tested and verified this.

Signed-off-by: martin f. krafft <madduck@madduck.net>
2008-02-29 19:29:44 +01:00
..
aggregate.pm implement aggregate_locking design 2008-02-03 16:48:26 -05:00
anonok.pm * pagespec_match() has changed to take named parameters, to better allow 2007-04-27 02:55:52 +00:00
brokenlinks.pm * brokenlinks: Don't list the same link multiple times. (%links might 2007-12-16 16:42:18 -05:00
calendar.pm add missing test to avoid uninitialised value when a page with metadata is removed 2008-01-29 17:36:25 -05:00
camelcase.pm * camelcase: Convert to use new linkify and scan hooks rather than the old 2008-02-11 23:04:19 -05:00
conditional.pm * conditional: Improve regexp testing for simple uses of pagespecs 2007-12-28 16:55:20 -05:00
ddate.pm * prettydate,ddate: Don't ignore time formats passed to displaytime 2008-01-28 23:48:27 -05:00
editdiff.pm * Call the formbuilder hook for the edit page. 2007-08-22 21:06:13 +00:00
edittemplate.pm add missing test to avoid uninitialised value when a page with metadata is removed 2008-01-29 17:36:25 -05:00
embed.pm * Add embed plugin, which allows embedding content from google maps, video, 2007-08-23 20:14:08 +00:00
external.pm * Generate XML RPC messages with the encoding set to utf-8 instead 2008-02-11 00:11:49 -05:00
favicon.pm * pagespec_match() has changed to take named parameters, to better allow 2007-04-27 02:55:52 +00:00
fortune.pm * pagespec_match() has changed to take named parameters, to better allow 2007-04-27 02:55:52 +00:00
goodstuff.pm * pagespec_match() has changed to take named parameters, to better allow 2007-04-27 02:55:52 +00:00
googlecalendar.pm * pagespec_match() has changed to take named parameters, to better allow 2007-04-27 02:55:52 +00:00
graphviz.pm * Fix problems with previewing in the graphviz plugin. Thanks, 2007-07-29 22:34:42 +00:00
haiku.pm * pagespec_match() has changed to take named parameters, to better allow 2007-04-27 02:55:52 +00:00
html.pm * pagespec_match() has changed to take named parameters, to better allow 2007-04-27 02:55:52 +00:00
htmlscrubber.pm Allow colons in URLs after the first slash 2008-02-29 19:29:44 +01:00
htmltidy.pm reset SIGPIPE before returning 2007-11-05 19:33:28 -05:00
httpauth.pm * pagespec_match() has changed to take named parameters, to better allow 2007-04-27 02:55:52 +00:00
img.pm optimisation: detect scan mode and avoid generating image 2008-01-09 02:31:11 -05:00
inline.pm * inline: When forcing urls absolute for rss feeds, skip mailto and other 2008-02-24 17:07:56 -05:00
link.pm * Add the linkify and scan hooks. These hooks can be used to implement 2008-02-11 22:48:27 -05:00
linkmap.pm * pagespec_match() has changed to take named parameters, to better allow 2007-04-27 02:55:52 +00:00
lockedit.pm fixes 2008-01-07 16:37:19 -05:00
map.pm * map: Fix handling of common prefix to handle the case where it's 2007-12-28 17:22:17 -05:00
mdwn.pm not only markdown adds gunk, so remove it in the main htmlize function 2008-01-09 14:41:28 -05:00
meta.pm * meta: Check that the urls provided for authorurl, permalink, and openid 2008-02-10 17:17:44 -05:00
mirrorlist.pm * pagespec_match() has changed to take named parameters, to better allow 2007-04-27 02:55:52 +00:00
more.pm * Add a destpage parameter to the filter hook. 2007-05-17 19:55:11 +00:00
opendiscussion.pm * opendiscussion: allow editing of the toplevel discussion page 2008-01-07 16:10:32 -05:00
openid.pm move openiduser function to the openid plugin 2008-01-30 02:39:17 -05:00
orphans.pm * pagespec_match() has changed to take named parameters, to better allow 2007-04-27 02:55:52 +00:00
otl.pm * pagespec_match() has changed to take named parameters, to better allow 2007-04-27 02:55:52 +00:00
pagecount.pm * pagespec_match() has changed to take named parameters, to better allow 2007-04-27 02:55:52 +00:00
pagestats.pm formatting 2007-05-12 19:28:03 +00:00
pagetemplate.pm * pagetemplate: don't display template name 2007-08-05 18:22:21 +00:00
passwordauth.pm * Change formbuilder hook to not be responsible for displaying a form, 2007-12-12 03:15:30 -05:00
poll.pm add support for prefix_directives 2008-02-05 16:14:38 -05:00
polygen.pm * pagespec_match() has changed to take named parameters, to better allow 2007-04-27 02:55:52 +00:00
postsparkline.pm only use half the max size 2007-10-25 00:28:40 -04:00
prettydate.pm * prettydate,ddate: Don't ignore time formats passed to displaytime 2008-01-28 23:48:27 -05:00
rawhtml.pm * pagespec_match() has changed to take named parameters, to better allow 2007-04-27 02:55:52 +00:00
recentchanges.pm * recentchanges: Exipre all *._change pages, even if the directory 2008-02-03 14:51:03 -05:00
search.pm * The search plugin needs to override <base> to point to the directory 2008-02-14 15:20:49 -05:00
shortcut.pm improve error message if shortcuts.mdwn DNE 2007-12-17 15:33:47 -05:00
sidebar.pm * Add a destpage parameter to the filter hook. 2007-05-17 19:55:11 +00:00
signinedit.pm fixes 2008-01-07 16:37:19 -05:00
skeleton.pm * Add the linkify and scan hooks. These hooks can be used to implement 2008-02-11 22:48:27 -05:00
smiley.pm * Support for looking in multiple directories for underlay files. 2007-08-28 01:59:01 +00:00
sparkline.pm * pagespec_match() has changed to take named parameters, to better allow 2007-04-27 02:55:52 +00:00
table.pm * mdwn: When htmlizing text, if it's a single line with no newline, 2008-01-09 14:35:23 -05:00
tag.pm patch from madduck to fix thinko 2007-09-24 16:41:29 +00:00
template.pm * template: Remove bogus htmlize pass added in 2.16. 2008-01-09 14:17:25 -05:00
testpagespec.pm * Add all=no option to conditional, can be used to form conditionals that do 2007-05-09 00:31:49 +00:00
teximg.pm the old code worked, suprisingly, but I prefer this form 2008-02-04 18:05:40 -05:00
textile.pm * pagespec_match() has changed to take named parameters, to better allow 2007-04-27 02:55:52 +00:00
toc.pm * toc: Handle html elements embedded inside a header, rather than 2007-11-23 11:40:02 -05:00
toggle.pm * Fix some issues with toggles in preview mode. 2007-10-29 17:16:10 -04:00
typography.pm exit with error if Text::Typography cannot be loaded 2007-06-05 19:06:54 +00:00
version.pm add missing test to avoid uninitialised value when a page with metadata is removed 2008-01-29 17:36:25 -05:00
wikitext.pm * pagespec_match() has changed to take named parameters, to better allow 2007-04-27 02:55:52 +00:00