summaryrefslogtreecommitdiff
path: root/dns.php
diff options
context:
space:
mode:
authorLuke Bratch <luke@bratch.co.uk>2017-10-01 12:56:47 +0100
committerLuke Bratch <luke@bratch.co.uk>2017-10-01 12:56:47 +0100
commit5a9e4c10116b32a3f0c78c812977cb3519bbec92 (patch)
treec5268aca2dd3b3ac3fab54ff1c4e8e0491b5d9d5 /dns.php
parentc1e026edbe67ce82aa206562da3ef84bb4ac0f43 (diff)
Escape double quotes to allow them to be used e.g. in TXT recordsHEADmaster
Diffstat (limited to 'dns.php')
-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);