idna convert the whole URI for uri's in docroot as redirect, fixes #1654

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2016-09-22 07:46:50 +02:00
parent 98c8f519a6
commit 9799e05ce4
4 changed files with 14 additions and 4 deletions

View File

@@ -470,7 +470,7 @@ class nginx extends HttpConfigBase {
// if the documentroot is an URL we just redirect
if (preg_match('/^https?\:\/\//', $domain['documentroot'])) {
$uri = $this->idnaConvert->encode($domain['documentroot']);
$uri = $this->idnaConvert->encode_uri($domain['documentroot']);
if (substr($uri, -1) == '/') {
$uri = substr($uri, 0, -1);
}