ikiwiki/IkiWiki
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
..
Plugin Allow colons in URLs after the first slash 2008-02-29 19:29:44 +01:00
Rcs * tla: Remove call to escapeHTML when constructing recentchanges message; 2008-02-20 16:45:02 -05:00
Setup * Correct a longstanding bug that could cause the edit form to be empty. 2007-06-30 00:48:39 +00:00
CGI.pm Fix links generated by preprocessor directives when previewing. 2008-02-24 16:37:11 -05:00
Render.pm avoid calling getctime on internal pages 2008-02-24 18:02:34 -05:00
Setup.pm * Better error message when a setup file has a syntax error. 2007-11-17 14:06:11 -05:00
UserInfo.pm * Removed support for sending commit notification mails. Along with it went 2008-01-29 00:36:58 -05:00
Wrapper.pm * Removed support for sending commit notification mails. Along with it went 2008-01-29 00:36:58 -05:00