[pypy-svn] r38868 - pypy/dist/pypy/translator/js
guido at codespeak.net
guido at codespeak.net
Wed Feb 14 23:05:14 CET 2007
Author: guido
Date: Wed Feb 14 23:05:13 2007
New Revision: 38868
Modified:
pypy/dist/pypy/translator/js/commproxy.py
Log:
Added missing escape() calls (for URL-encoding the GET and POST bodies).
Modified: pypy/dist/pypy/translator/js/commproxy.py
==============================================================================
--- pypy/dist/pypy/translator/js/commproxy.py (original)
+++ pypy/dist/pypy/translator/js/commproxy.py Wed Feb 14 23:05:13 2007
@@ -19,7 +19,7 @@
} else {
str += "&";
}
- str += i + "=" + data[i].toString();
+ str += escape(i) + "=" + escape(data[i].toString());
}
}
//logDebug('%(call)s'+str);
@@ -45,7 +45,7 @@
} else {
str += "&";
}
- str += i + "=" + data[i].toString();
+ str += escape(i) + "=" + escape(data[i].toString());
}
}
//logDebug('%(call)s'+str);
More information about the Pypy-commit
mailing list