Skip to content

Commit f6174df

Browse files
author
Marius Cramer
committed
Merge branch 'master' of git.ispconfig.org:ispconfig/ispconfig3
2 parents 0de30f9 + eebf5bb commit f6174df

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

interface/web/dns/dns_soa_edit.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,11 @@ function onBeforeUpdate () {
283283
if($_SESSION["s"]["user"]["typ"] != 'admin' && !$app->auth->has_clients($_SESSION['s']['user']['userid'])) {
284284
//* We do not allow users to change a domain which has been created by the admin
285285
$rec = $app->db->queryOneRecord("SELECT origin from dns_soa WHERE id = ".$this->id);
286-
if(isset($this->dataRecord["origin"]) && $rec['origin'] != $this->dataRecord["origin"] && $app->tform->checkPerm($this->id, 'u')) {
286+
$drOrigin = (isset($this->dataRecord['origin']))
287+
? $app->functions->idn_encode($this->dataRecord['origin'])
288+
: false;
289+
290+
if($rec['origin'] !== $drOrigin && $app->tform->checkPerm($this->id, 'u')) {
287291
//* Add a error message and switch back to old server
288292
$app->tform->errorMessage .= $app->lng('The Zone (soa) can not be changed. Please ask your Administrator if you want to change the Zone name.');
289293
$this->dataRecord["origin"] = $rec['origin'];

0 commit comments

Comments
 (0)