mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-03-24 06:20:07 +01:00
Fixes issue #202.
This commit is contained in:
parent
ad7c8d9bd8
commit
a568308250
@ -153,7 +153,7 @@ class Archive {
|
||||
if ($code == App::$MAGIC_SEQUENCE && !$this->app->is_ignored($n)) {
|
||||
|
||||
$real_file = $this->app->get_abs_path($href);
|
||||
$archived_file = preg_replace("!^" . normalize_path($this->app->get_abs_path(), true) . "!", "", $real_file);
|
||||
$archived_file = preg_replace("!^" . preg_quote(normalize_path($this->app->get_abs_path(), true)) . "!", "", $real_file);
|
||||
|
||||
if (is_dir($real_file)) {
|
||||
$this->add_dir($real_file, $archived_file);
|
||||
|
Loading…
x
Reference in New Issue
Block a user