From: mutec Date: Sun, 5 Jan 2020 13:29:21 +0000 (+0100) Subject: fix htaccess generation X-Git-Tag: 5.2.1~12^2^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b9ea9fe722e92c5a96d96dd43c4746b247981482;p=GitHub%2FWoltLab%2FWCF.git fix htaccess generation --- diff --git a/wcfsetup/install/files/lib/data/option/OptionAction.class.php b/wcfsetup/install/files/lib/data/option/OptionAction.class.php index 8dcfee9ac1..c78ba010e4 100644 --- a/wcfsetup/install/files/lib/data/option/OptionAction.class.php +++ b/wcfsetup/install/files/lib/data/option/OptionAction.class.php @@ -171,11 +171,12 @@ class OptionAction extends AbstractDatabaseObjectAction { foreach ($domainPaths as $domainPath => $value) { $htaccess = "{$dir}.htaccess"; - $path = FileUtil::removeTrailingSlash(substr($value, strlen($dir))); + $path = FileUtil::addTrailingSlash(substr($value, strlen($dir))); + if ($path == '/') $path = ''; $content = <<