Merge pull request #5959 from dhensby/pulls/3.2/bad-strpos-fix

FIX Bad strpos call in HTTP::register_etag()
This commit is contained in:
Damian Mooyman 2016-09-07 12:05:57 +12:00 committed by GitHub
commit 9455ced41a

View File

@ -302,7 +302,7 @@ class HTTP {
}
public static function register_etag($etag) {
if (0 !== strpos('"')) {
if (0 !== strpos($etag, '"')) {
$etag = sprintf('"%s"', $etag);
}
self::$etag = $etag;