From: Brion Vibber Date: Fri, 28 May 2004 07:45:38 +0000 (+0000) Subject: Fix image deletion for file with ampsersand in name (bug 952546) X-Git-Tag: 1.5.0alpha1~3179 X-Git-Url: http://git.cyclocoop.org/%22.%24match%5B1%5D.%22?a=commitdiff_plain;h=170d0361dd41272fde4c9cbaf271dd36f7aeb670;p=lhc%2Fweb%2Fwiklou.git Fix image deletion for file with ampsersand in name (bug 952546) --- diff --git a/includes/ImagePage.php b/includes/ImagePage.php index 164abb5a37..8eff5e6e9f 100644 --- a/includes/ImagePage.php +++ b/includes/ImagePage.php @@ -139,9 +139,9 @@ class ImagePage extends Article { } if ( !is_null( $image ) ) { - $q = "&image={$image}"; + $q = "&image=" . urlencode( $image ); } else if ( !is_null( $oldimage ) ) { - $q = "&oldimage={$oldimage}"; + $q = "&oldimage=" . urlencode( $oldimage ); } else { $q = ""; }