mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
commit
9455ced41a
@ -302,7 +302,7 @@ class HTTP {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static function register_etag($etag) {
|
public static function register_etag($etag) {
|
||||||
if (0 !== strpos('"')) {
|
if (0 !== strpos($etag, '"')) {
|
||||||
$etag = sprintf('"%s"', $etag);
|
$etag = sprintf('"%s"', $etag);
|
||||||
}
|
}
|
||||||
self::$etag = $etag;
|
self::$etag = $etag;
|
||||||
|
Loading…
Reference in New Issue
Block a user