Skip to content

Commit

Permalink
refactor: Improve regular expression in initialize.functions.inc.php
Browse files Browse the repository at this point in the history
  • Loading branch information
yama committed Jul 21, 2024
1 parent 084b31a commit 37a19cc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions manager/includes/initialize.functions.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,7 @@ public static function get_base_url($base_path)
}

$dir = preg_replace(
'@(.*?)/assets/.*$@',
'$1',
'@(.*?)/assets/.*$@', '$1',
substr($SCRIPT_NAME, 0, strrpos($SCRIPT_NAME, '/') + 1)
);
if (strpos($SCRIPT_NAME, '/~') === 0) {
Expand Down

0 comments on commit 37a19cc

Please sign in to comment.