projects
/
dyn-nsupdate.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b93521c
)
fix how we make CGI arguments to strings
author
Ralf Jung
<post@ralfj.de>
Tue, 14 Oct 2014 14:00:13 +0000
(16:00 +0200)
committer
Ralf Jung
<post@ralfj.de>
Tue, 14 Oct 2014 14:00:13 +0000
(16:00 +0200)
server-scripts/update
patch
|
blob
|
history
diff --git
a/server-scripts/update
b/server-scripts/update
index 02a52c315c898f107ed4fbc73835e53b026983ba..5fc519b3530bbed36303202e0d6e5f95dc82deb2 100755
(executable)
--- a/
server-scripts/update
+++ b/
server-scripts/update
@@
-38,10
+38,10
@@
if "password" not in form or "domain" not in form or ("ip" not in form and "ipv6
print "Mandatory argument missing: You must supply all of 'password', 'domain' and at least either 'ip' or 'ipv6'"
sys.exit()
print "Mandatory argument missing: You must supply all of 'password', 'domain' and at least either 'ip' or 'ipv6'"
sys.exit()
-domain =
str(form.getvalue("domain")
)
-password =
str(form.getvalue("password")
)
-ip =
str(form.getvalue("ip")
)
-ipv6 =
str(form.getvalue("ipv6")
)
+domain =
form.getfirst("domain"
)
+password =
form.getfirst("password"
)
+ip =
form.getfirst("ip"
)
+ipv6 =
form.getfirst("ipv6"
)
# run update program
args = ["/var/lib/bind/dyn-nsupdate", "--domain", domain, "--password", password]
# run update program
args = ["/var/lib/bind/dyn-nsupdate", "--domain", domain, "--password", password]