Permalink
Browse files

Small change in condition...

  • Loading branch information...
1 parent 6ee3b26 commit e5e3f219dd283197d3ba6d88095ef69a94654533 stronk7 committed Oct 17, 2004
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/pclzip/pclzip.lib.php
@@ -2282,7 +2282,7 @@ function privAddFile($p_filename, &$p_header, $p_add_dir, $p_remove_dir, $p_remo
//skodak's hack - store trailing slash for directories - for compatibility with info-zip
if(is_dir($p_filename)) {
- if(strrpos($v_stored_filename, '/') != strlen($v_stored_filename)-1) {
+ if(substr($v_stored_filename,-1) != '/') {
$v_stored_filename = $v_stored_filename.'/';
}
}

0 comments on commit e5e3f21

Please sign in to comment.