Fixing typo in Requirements allowing access to files requested with query strings

This commit is contained in:
Matt Lewis 2012-12-12 11:00:52 +00:00 committed by Ingo Schommer
parent 51c6a87fc7
commit af6eccea96

View File

@ -794,7 +794,7 @@ class Requirements_Backend {
$mtimesuffix = "";
$suffix = '';
if(strpos($fileOrUrl, '?') !== false) {
$suffix = '&' . substr($fileOrUrl, strpos($fileOrUrl, '?')+1);
$suffix = '?' . substr($fileOrUrl, strpos($fileOrUrl, '?')+1);
$fileOrUrl = substr($fileOrUrl, 0, strpos($fileOrUrl, '?'));
}
if($this->suffix_requirements) {