commit 5d434a3ff3426bfdc1a98da2543b1345a475ba67
parent 5c9343753fce6d3c9465db301743d07644c02dc7
Author: David du Colombier <0intro@gmail.com>
Date: Fri, 20 Jan 2012 13:13:30 -0500
venti: fix settings in stats
R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/5558054
Diffstat:
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/cmd/venti/srv/www/stats.html b/src/cmd/venti/srv/www/stats.html
@@ -6,6 +6,7 @@
<script language="javascript" src="status.js"></script>
</head>
<body bgcolor=#ffffff>
+ <iframe name="hidden" frameborder="0" height="0"></iframe>
<center>
<b>venti.your-domain.com – venti server statistics</b>
diff --git a/src/cmd/venti/srv/www/stats.js b/src/cmd/venti/srv/www/stats.js
@@ -395,5 +395,5 @@ function set(name, value) {
eval(name+"= \""+value+"\"")
redrawsettings()
// Works in FireFox, not in Safari
- parent.hidden.location.href = "/set/"+name+"/"+value
+ parent.hidden.location.href = "/set?name="+name+"&value="+value
}