Skip to content
Browse files

Nun werden auch Backslashes beim Anlegen oder Bearbeiten einer Domain…

… im Adminmenue richtig behandelt.

git-svn-id: file:///var/svn/trunk@45 45fdb5c4-e40b-0410-b369-9aab4fe9a275
  • Loading branch information...
1 parent 2b7ce90 commit f737af77f61e0b4493da5c617b8f4fa0f74e164d @flol committed
Showing with 2 additions and 0 deletions.
  1. +2 −0 syscp/admin_domains.php
View
2 syscp/admin_domains.php
@@ -165,6 +165,7 @@
$specialsettings = urldecode($specialsettings);
}
+ $specialsettings = addslashes($specialsettings);
$db->query("INSERT INTO `".TABLE_PANEL_DOMAINS."` (`domain`, `customerid`, `adminid`, `documentroot`, `zonefile`, `isemaildomain`, `openbasedir`, `safemode`, `speciallogfile`, `specialsettings`) VALUES ('$domain', '$customerid', '{$userinfo['adminid']}', '$documentroot', '$zonefile', '1', '$openbasedir', '$safemode', '$speciallogfile', '$specialsettings')");
$domainid=$db->insert_id();
$db->query("UPDATE `".TABLE_PANEL_ADMINS."` SET `domains_used` = `domains_used` + 1 WHERE `adminid` = '{$userinfo['adminid']}'");
@@ -250,6 +251,7 @@
inserttask('4');
}
+ $specialsettings = addslashes($specialsettings);
$result=$db->query("UPDATE `".TABLE_PANEL_DOMAINS."` SET `documentroot`='$documentroot', `zonefile`='$zonefile', `openbasedir`='$openbasedir', `safemode`='$safemode', `specialsettings`='$specialsettings' WHERE `id`='$id'");
$result=$db->query("UPDATE `".TABLE_PANEL_DOMAINS."` SET `openbasedir`='$openbasedir', `safemode`='$safemode', `specialsettings`='$specialsettings' WHERE `parentdomainid`='$id'");

0 comments on commit f737af7

Please sign in to comment.
Something went wrong with that request. Please try again.