Ticket #49 (closed defect: fixed)

Opened 7 months ago

Last modified 7 months ago

Dots trimmed in relative URLs

Reported by: Jase Owned by: jgarber
Priority: major Milestone: 4.0
Component: ext Version: SUPER
Keywords: Cc:

Description

This is to do with URL processing it appears to be isolated to image tag URL parsing (doesn't seem to be affected by normal URLs).

puts RedCloth?.new('!../../index.html!').to_html

Returns:

<p><img src="/../index.html" alt="" /></p>

It trims the any number dots before the first / in relative URL's. I kind of depend on this as the code I'm generating is part of a publishing system that needs to be able to handle relative links so pages can be distributed offline.

Change History

Changed 7 months ago by jgarber

  • status changed from new to closed
  • resolution set to fixed

Fixed in [296]

Note: See TracTickets for help on using tickets.