Use `str_contains()` in ImageProxyAction
authorTim Düsterhus <duesterhus@woltlab.com>
Fri, 2 Sep 2022 07:22:23 +0000 (09:22 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Fri, 2 Sep 2022 07:28:40 +0000 (09:28 +0200)
wcfsetup/install/files/lib/action/ImageProxyAction.class.php

index ef3b7278f8f00581213ebb84ec8b25e6a6e9d668..e8e1be3ef1c8394909a6ec58580d837c64b29e50 100644 (file)
@@ -83,7 +83,7 @@ class ImageProxyAction extends AbstractAction
     {
         parent::execute();
 
-        if (isset($_SERVER['HTTP_VIA']) && \strpos($_SERVER['HTTP_VIA'], 'wsc') !== false) {
+        if (isset($_SERVER['HTTP_VIA']) && \str_contains($_SERVER['HTTP_VIA'], 'wsc')) {
             throw new IllegalLinkException();
         }