[Bug 420024] [NEW] Subroutine "filepath" mismatch in libmediawiki-perl

Kevin McDonald spookcomix at gmail.com
Thu Aug 27 16:23:12 UTC 2009


Public bug reported:

There's a bug in the regular expression identified below.  This bug
prevents the download method from MediaWiki.pm from being able to
download binary files.  Another developer on our team caught it and
identified the fix.

Release: 8.04 LTS (Hardy)
Package: libmediawiki-perl
File:  /usr/share/perl5/MediaWiki/page.pm
Using: MediaWiki 1.11-2-2

Action required:  Changed line 72 In order to make the subroutine 'filepath' match as intended on line 490:
	From: $filepath_regex = qr/(?<=<div class=["']fullImageLink["'] id=["']file["']>)[.\n]*?(?=<\/div>)/;
	To: $filepath_regex = qr/(?<=<div class=["']fullImageLink["'] id=["']file["']>)[.\n]*(.*)(?=<\/div>)/;

** Affects: libmediawiki-perl (Ubuntu)
     Importance: Undecided
         Status: New

** Package changed: ubuntu => libmediawiki-perl (Ubuntu)

-- 
Subroutine "filepath" mismatch in libmediawiki-perl
https://bugs.launchpad.net/bugs/420024
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs




More information about the universe-bugs mailing list