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/(?<=&oldid=)[0-9]+(?=["'])/;