File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff 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 ' ];
You can’t perform that action at this time.
0 commit comments