From fca562549bc185f9bbde0a2bb7219a5083803a46 Mon Sep 17 00:00:00 2001 From: Jakub Skoczen Date: Fri, 1 Jun 2007 09:19:58 +0000 Subject: [PATCH] Encoding the URI properly . --- js/pz2.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/pz2.js b/js/pz2.js index cb5a0e7..9eaae43 100644 --- a/js/pz2.js +++ b/js/pz2.js @@ -1,5 +1,5 @@ /* -** $Id: pz2.js,v 1.27 2007-06-01 08:25:53 jakub Exp $ +** $Id: pz2.js,v 1.28 2007-06-01 09:19:58 jakub Exp $ ** pz2.js - pazpar2's javascript client library. */ @@ -533,7 +533,7 @@ pzHttpRequest.prototype = var paramArr = new Array(); for ( var key in params ) { - paramArr.push(key + '=' + params[key] ); + paramArr.push(key + '=' + encodeURI(params[key]) ); } if ( paramArr.length ) -- 1.7.10.4