From 7f89611f62853b405eda4135eac2d9abc7fc70a0 Mon Sep 17 00:00:00 2001 From: Rommel Castro <532402+rcstr@users.noreply.github.com> Date: Thu, 9 May 2024 16:22:41 -0600 Subject: [PATCH] update exception message Co-authored-by: Greg <71906536+zhongruige@users.noreply.github.com> --- src/src/Woo/ZipValidator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/src/Woo/ZipValidator.php b/src/src/Woo/ZipValidator.php index 9cc21464..059c0192 100644 --- a/src/src/Woo/ZipValidator.php +++ b/src/src/Woo/ZipValidator.php @@ -82,7 +82,7 @@ public function validate_zip( string $filepath ) { } if ( $this->is_file_invalid( $info['name'] ) ) { - throw new \RuntimeException( sprintf( 'Invalid (%s) file/folder inside zip file', $info['name'] ), 400 ); + throw new \RuntimeException( sprintf( 'Invalid (%s) file/folder inside the provided ZIP file', $info['name'] ), 400 ); } if ( ! $found_parent_directory && str_starts_with( strtolower( $info['name'] ), $parent_dir ) ) {