FIX Bad strpos call in HTTP::register_etag()

This commit is contained in:
Daniel Hensby 2016-09-06 23:32:57 +01:00
parent f4a6e9e517
commit e7ecf6cf15
No known key found for this signature in database
GPG Key ID: 229831A941962E26

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;