aboutsummaryrefslogtreecommitdiffstats
path: root/core/namespace/FactoryInterface.php
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2021-08-04 15:53:38 +0200
committerThomas Lange <code@nerdmind.de>2021-08-04 16:16:14 +0200
commitd677315331796d52bd1bcf5908964a53958469d6 (patch)
tree49eafe77c4d706b3f77e776efab6c67f99ebde9a /core/namespace/FactoryInterface.php
parentb73a4dd4958a7c5d507179fdd291a80d1382b743 (diff)
downloadblog-d677315331796d52bd1bcf5908964a53958469d6.tar.gz
blog-d677315331796d52bd1bcf5908964a53958469d6.tar.xz
blog-d677315331796d52bd1bcf5908964a53958469d6.zip
Use "strpos" to validate "If-None-Match" header
Remove those "trim" calls and use "strpos" to check if the ETag value generated by the system is contained somewhere in the "If-None-Match" request header sent by the client (if present). With this commit, the ETag header validation now also works with nginx. The nginx web server prefixes the "ETag" header generated by the system with the string "W/" which caused the previous validation code to fail. Instead of using multiple "trim" calls or "preg_replace", we now use a single, simple and fast "strpos" call to check if the system generated Etag hash value is contained in the "If-None-Match" request header.
Diffstat (limited to 'core/namespace/FactoryInterface.php')
0 files changed, 0 insertions, 0 deletions