summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dns.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/dns.php b/dns.php
index 11de4ad..d2dcc19 100644
--- a/dns.php
+++ b/dns.php
@@ -94,6 +94,7 @@ function writezone($domain, $zonetext, $password = null) {
// Escape characters that will break the echo later on
$zonetext = str_replace('$', '\$', $zonetext);
+ $zonetext = str_replace('"', '\"', $zonetext);
// Create a temporary file for checking the zone file validity
sshrun("echo -en \"$zonetext\" > " . TMPROOT . $domain . TMPSUFFIX);