From: Chad Horohoe Date: Thu, 4 Dec 2008 18:23:52 +0000 (+0000) Subject: Same as before, hardcoding Image: is safer. X-Git-Tag: 1.31.0-rc.0~44123 X-Git-Url: https://git.cyclocoop.org/admin/?a=commitdiff_plain;h=87c34da6f85166b7ea8800286ff6c9de900ae598;p=lhc%2Fweb%2Fwiklou.git Same as before, hardcoding Image: is safer. --- diff --git a/includes/filerepo/FileRepo.php b/includes/filerepo/FileRepo.php index 26a8d40837..32f04ed7d8 100644 --- a/includes/filerepo/FileRepo.php +++ b/includes/filerepo/FileRepo.php @@ -300,7 +300,7 @@ abstract class FileRepo { function getDescriptionRenderUrl( $name ) { if ( isset( $this->scriptDirUrl ) ) { return $this->scriptDirUrl . '/index.php?title=' . - wfUrlencode( MWNamespace::getCanonicalName( NS_FILE ) . ':' . $name ) . + wfUrlencode( 'Image:' . $name ) . '&action=render'; } else { $descBase = $this->getDescBaseUrl();