Skip Menu |

This queue is for tickets about the MediaWiki CPAN distribution.

Report information
The Basics
Id: 27587
Status: new
Priority: 0/
Queue: MediaWiki

People
Owner: Nobody in particular
Requestors: buzz [...] exotica.org.uk
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: (no value)
Fixed in: (no value)



Subject: Uploads do not work without filepath extension
This fix was included in my patch for mediawiki 1.8 to bring 1.9 compatibility. That bug is now closed, but the upload problem is still present (I assume the module has only been tested using the filepath extension) Diff attached. Works for me, but there might be a better fix.
Subject: uploadfix.diff
--- page.pm 2007-05-18 08:58:11.000000000 +0100 +++ page-new.pm 2007-06-14 22:46:32.000000000 +0100 @@ -69,7 +69,7 @@ $li_regex = qr/(?<=<li>).*?(?=<\/li>)/; $link_regex1 = qr/<a href=["']\/wiki\/(.*?)["'].*?title=["'](?:.*?)['"]>(.*?)<\/a>/; - $filepath_regex = qr/(?<=<div class=["']fullImageLink["'] id=["']file["']>)[.\n]*?(?=<\/div>)/; + $filepath_regex = qr/(?<=<div class=["']fullImageLink["'] id=["']file["']>).*?(?=<\/div>)/; $src_regex = qr/(?<=src=['"]).*?(?=['"])/; $oldid_regex = qr/(?<=&amp;oldid=)[0-9]+(?=["'])/;