Skip to content

Commit

Permalink
update exception message
Browse files Browse the repository at this point in the history
Co-authored-by: Greg <71906536+zhongruige@users.noreply.github.com>
  • Loading branch information
rcstr and zhongruige authored May 9, 2024
1 parent 1333859 commit 7f89611
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/src/Woo/ZipValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) ) {
Expand Down

0 comments on commit 7f89611

Please sign in to comment.