summaryrefslogtreecommitdiff
path: root/src/editor/simple/example_based.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/editor/simple/example_based.js')
-rw-r--r--src/editor/simple/example_based.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/editor/simple/example_based.js b/src/editor/simple/example_based.js
index 1fb13740a..5922b60ea 100644
--- a/src/editor/simple/example_based.js
+++ b/src/editor/simple/example_based.js
@@ -32,8 +32,7 @@ function exb_state(g,ci) {
function exb_call(g,ci,command,args,cont) {
var url=window.exb_url || "exb/exb.fcgi";
- var q=""
- for(var arg in args) q+="&"+arg+"="+encodeURIComponent(args[arg]);
+ var q=encodeArgs(args);
var cmd="?command="+command+"&state="+encodeURIComponent(exb_state(g,ci))+q;
http_get_json(url+cmd,cont)
}