Subroutine "filepath" mismatch in libmediawiki-perl

Bug #420024 reported by Kevin McDonald
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libmediawiki-perl (Ubuntu)
New
Undecided
Unassigned
Nominated for Hardy by Kevin McDonald

Bug Description

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: ubuntu → libmediawiki-perl (Ubuntu)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.