dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Extend wfParseUrl() to handle protocol-relative URLs. parse_url() doesn't handle...
[lhc/web/wiklou.git]
/
img_auth.php
diff --git
a/img_auth.php
b/img_auth.php
index
8ea7b01
..
ed4c6be
100644
(file)
--- a/
img_auth.php
+++ b/
img_auth.php
@@
-46,7
+46,7
@@
$matches = WebRequest::getPathInfo();
$path = $matches['title'];
// Check for bug 28235: QUERY_STRING overriding the correct extension
$path = $matches['title'];
// Check for bug 28235: QUERY_STRING overriding the correct extension
-$dotPos = strpos( $path, '.' );
+$dotPos = str
r
pos( $path, '.' );
$whitelist = array();
if ( $dotPos !== false ) {
$whitelist[] = substr( $path, $dotPos + 1 );
$whitelist = array();
if ( $dotPos !== false ) {
$whitelist[] = substr( $path, $dotPos + 1 );