- Timestamp:
- 2019-10-03T18:56:15+13:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/web/interfaces/default/js/facet-scripts.js
r33322 r33544 15 15 for(var key in gs.cgiParams) 16 16 { 17 if (gs.cgiParams.hasOwnProperty(key)) 18 { 19 searchString += key.replace(/_/g, ".") + "=" + gs.cgiParams[key] + "&"; 20 } 17 if (gs.cgiParams.hasOwnProperty(key)) 18 { 19 searchString += key.replace(/_/g, ".") + "=" + makeURLComponentSafe(gs.cgiParams[key]) + "&"; 20 //console.log("PARAM FOR key " + key + ":" + gs.cgiParams[key]); 21 //console.log("SAFE PARAM FOR " + key + ":" + makeURLComponentSafe(gs.cgiParams[key])); 22 } 21 23 } 22 24 … … 32 34 // calling makeURLSafe() here will ensure percent signs are escaped away too 33 35 // by the end of makeURLComponentSafe() call below 36 // Note that apostrophe's in URLs should get encoded, https://www.techwalla.com/articles/how-to-encode-an-apostrophe-in-a-url 37 // though the apostrophe is not in that other list of invalid and unsafe chars in urls dealt with in utility_scripts.js 34 38 countsStringBuffer += "\"" + makeURLSafe(counts[i]).replace(/'/g, "%2527") + "\""; 35 39 if(i < counts.length - 1)
Note:
See TracChangeset
for help on using the changeset viewer.