Skip to content

Commit

Permalink
fix idna convert for >=php-5.6 users when customers want to add a sub…
Browse files Browse the repository at this point in the history
…domain with an idna-encoded domain

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
  • Loading branch information
d00p committed Aug 31, 2016
1 parent 8f488d7 commit d7388f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion customer_domains.php
Expand Up @@ -265,7 +265,7 @@
}

$subdomain = $idna_convert->encode(preg_replace(array('/\:(\d)+$/', '/^https?\:\/\//'), '', validate($_POST['subdomain'], 'subdomain', '', 'subdomainiswrong')));
$domain = $idna_convert->encode($_POST['domain']);
$domain = $_POST['domain'];
$domain_stmt = Database::prepare("SELECT * FROM `" . TABLE_PANEL_DOMAINS . "`
WHERE `domain` = :domain
AND `customerid` = :customerid
Expand Down

0 comments on commit d7388f2

Please sign in to comment.