Skip to content
This repository has been archived by the owner on Feb 13, 2019. It is now read-only.

Commit

Permalink
Nun werden auch Backslashes beim Anlegen oder Bearbeiten einer Domain…
Browse files Browse the repository at this point in the history
… im Adminmenue richtig behandelt.

git-svn-id: file:///var/svn/trunk/syscp@45 45fdb5c4-e40b-0410-b369-9aab4fe9a275
  • Loading branch information
Florian Lippert committed Sep 29, 2004
1 parent 5f0a03e commit a2b6e48
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions admin_domains.php
Expand Up @@ -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']}'");
Expand Down Expand Up @@ -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'");

Expand Down

0 comments on commit a2b6e48

Please sign in to comment.