Index: trunk/phase3/includes/filerepo/OldLocalFile.php |
— | — | @@ -139,7 +139,7 @@ |
140 | 140 | } |
141 | 141 | |
142 | 142 | function getUrlRel() { |
143 | | - return 'archive/' . $this->getHashPath() . urlencode( $this->getArchiveName() ); |
| 143 | + return 'archive/' . $this->getHashPath() . rawurlencode( $this->getArchiveName() ); |
144 | 144 | } |
145 | 145 | |
146 | 146 | function upgradeRow() { |
Index: trunk/phase3/includes/filerepo/ForeignAPIRepo.php |
— | — | @@ -254,7 +254,7 @@ |
255 | 255 | } |
256 | 256 | $localPath = $this->getZonePath( 'thumb' ) . "/" . $this->getHashPath( $name ) . $name; |
257 | 257 | $localFilename = $localPath . "/" . $fileName; |
258 | | - $localUrl = $this->getZoneUrl( 'thumb' ) . "/" . $this->getHashPath( $name ) . urlencode( $name ) . "/" . urlencode( $fileName ); |
| 258 | + $localUrl = $this->getZoneUrl( 'thumb' ) . "/" . $this->getHashPath( $name ) . rawurlencode( $name ) . "/" . rawurlencode( $fileName ); |
259 | 259 | |
260 | 260 | if( file_exists( $localFilename ) && isset( $metadata['timestamp'] ) ) { |
261 | 261 | wfDebug( __METHOD__ . " Thumbnail was already downloaded before\n" ); |
Index: trunk/phase3/includes/filerepo/UnregisteredLocalFile.php |
— | — | @@ -100,7 +100,7 @@ |
101 | 101 | |
102 | 102 | function getURL() { |
103 | 103 | if ( $this->repo ) { |
104 | | - return $this->repo->getZoneUrl( 'public' ) . '/' . $this->repo->getHashPath( $this->name ) . urlencode( $this->name ); |
| 104 | + return $this->repo->getZoneUrl( 'public' ) . '/' . $this->repo->getHashPath( $this->name ) . rawurlencode( $this->name ); |
105 | 105 | } else { |
106 | 106 | return false; |
107 | 107 | } |