Ticket #145 (closed defect: fixed)
URL containing .jpg interpreted wrongly as image
| Reported by: | DotMG | Owned by: | DotMG |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.1.6.2 |
| Component: | formatters | Version: | 1.1.6.1 |
| Severity: | normal | Keywords: | Regex Image formatters |
| Cc: |
Description
The code below will be treated as if you wanted to insert an image, because Regex will find \.png http://wikkawiki.org/ThisFileIsNotAnImage.pngCozItHasAnDotHtmlExtension. This will be the case if a website's domain name or url path contains .png, .gif, .jpg or .mm Ex: http://www.jpgsrc.org/index.php will be treated as image.
File to modify: formatters/wakka.php Lines 127 and 131. Replace /(.*)\.(gif|jpg|png)/si by /\.(gif|jpg|png)$/si and /(.*)\.(mm)/si by /\.(mm)$/si. I cannot do it now 'coz I don't have SVN client and I'm not yet familiar with.
Change History
Note: See
TracTickets for help on using
tickets.