[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 02/04: Protect queryString with encodeURI
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 02/04: Protect queryString with encodeURI |
Date: |
Wed, 20 Dec 2017 04:42:41 -0500 (EST) |
sparkyx pushed a commit to annotated tag rel6919.6
in repository noalyss.
commit ac996a79b46d3f956095e54b898ecfe02668ae95
Author: Dany De Bontridder <address@hidden>
Date: Fri Dec 8 20:11:22 2017 +0100
Protect queryString with encodeURI
---
html/js/acc_ledger.js | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/html/js/acc_ledger.js b/html/js/acc_ledger.js
index 4cbc790..656c4b5 100644
--- a/html/js/acc_ledger.js
+++ b/html/js/acc_ledger.js
@@ -162,7 +162,7 @@ function update_row(ctl)
{
var jrn = g('p_jrn').value;
var dossier = g('gDossier').value;
- var qs = 'gDossier=' + dossier + '&op=minrow&j=' + jrn + '&ctl=' + ctl;
+ var qs = encodeURI('gDossier=' + dossier + '&op=minrow&j=' + jrn +
'&ctl=' + ctl);
var action = new Ajax.Request(
"ajax_misc.php",
{
@@ -915,7 +915,7 @@ function filter_card(obj, queryString)
{
queryString = queryString + '&j=' + jrn;
}
- return queryString;
+ return encodeURI(queryString);
}
/**
address@hidden to display the lettering for the operation, call
@@ -1056,7 +1056,7 @@ function op_save(obj)
var action = new Ajax.Request('ajax_misc.php',
{
method: 'post',
- parameters: queryString,
+ parameters: encodeURI(queryString),
onFailure: null,
onSuccess: infodiv
}