From 3e57c0f6731c47757c13f134ebccc37f711faeb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eug=C3=A8ne?= Date: Tue, 13 Nov 2018 18:01:18 +0100 Subject: [PATCH] Fix duplicated conditions the checkFileName --- src/interfaces/handler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/interfaces/handler.php b/src/interfaces/handler.php index fe1dc1a..5dc8fff 100644 --- a/src/interfaces/handler.php +++ b/src/interfaces/handler.php @@ -136,7 +136,7 @@ public function __isset( $name ) */ protected function checkFileName( $file ) { - if ( strpos( $file, "'" ) !== false || strpos( $file, "'" ) !== false || strpos( $file, '$' ) !== false ) + if ( strpos( $file, "'" ) !== false || strpos( $file, '"' ) !== false || strpos( $file, '$' ) !== false ) { throw new ezcImageFileNameInvalidException( $file ); }