mirror of
https://github.com/lrsjng/h5ai.git
synced 2024-09-20 04:38:51 -04:00
Fixes issue #202.
This commit is contained in:
parent
ad7c8d9bd8
commit
a568308250
1 changed files with 1 additions and 1 deletions
|
@ -153,7 +153,7 @@ class Archive {
|
||||||
if ($code == App::$MAGIC_SEQUENCE && !$this->app->is_ignored($n)) {
|
if ($code == App::$MAGIC_SEQUENCE && !$this->app->is_ignored($n)) {
|
||||||
|
|
||||||
$real_file = $this->app->get_abs_path($href);
|
$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)) {
|
if (is_dir($real_file)) {
|
||||||
$this->add_dir($real_file, $archived_file);
|
$this->add_dir($real_file, $archived_file);
|
||||||
|
|
Loading…
Reference in a new issue