fix unnecessary idn encoding
Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
@@ -431,7 +431,7 @@ class lighttpd extends HttpConfigBase
|
|||||||
$domain['documentroot'] = trim($domain['documentroot']);
|
$domain['documentroot'] = trim($domain['documentroot']);
|
||||||
|
|
||||||
if (preg_match('/^https?\:\/\//', $domain['documentroot'])) {
|
if (preg_match('/^https?\:\/\//', $domain['documentroot'])) {
|
||||||
$uri = $this->idnaConvert->encode_uri($domain['documentroot']);
|
$uri = $domain['documentroot'];
|
||||||
// prevent empty return-cde
|
// prevent empty return-cde
|
||||||
$code = "301";
|
$code = "301";
|
||||||
// Get domain's redirect code
|
// Get domain's redirect code
|
||||||
|
|||||||
@@ -456,7 +456,7 @@ class nginx extends HttpConfigBase
|
|||||||
|
|
||||||
// if the documentroot is an URL we just redirect
|
// if the documentroot is an URL we just redirect
|
||||||
if (preg_match('/^https?\:\/\//', $domain['documentroot'])) {
|
if (preg_match('/^https?\:\/\//', $domain['documentroot'])) {
|
||||||
$uri = $this->idnaConvert->encode_uri($domain['documentroot']);
|
$uri = $domain['documentroot'];
|
||||||
if (substr($uri, - 1) == '/') {
|
if (substr($uri, - 1) == '/') {
|
||||||
$uri = substr($uri, 0, - 1);
|
$uri = substr($uri, 0, - 1);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user