From b47c8d3e403bfe2339063e460e7ef7293b135f87 Mon Sep 17 00:00:00 2001 From: Claudio Sacerdoti Coen Date: Tue, 9 Mar 2004 16:29:49 +0000 Subject: [PATCH] escape/unescape no longer works with '+'; replaced with encodeURIComponent and decodeURIComponent --- helm/searchEngine/html/editor.html | 2 +- helm/searchEngine/html/editorpdq.html | 12 +++--- helm/searchEngine/html/index.html | 60 +++++++++++++-------------- 3 files changed, 37 insertions(+), 37 deletions(-) diff --git a/helm/searchEngine/html/editor.html b/helm/searchEngine/html/editor.html index 1e6afe7d0..683b20030 100644 --- a/helm/searchEngine/html/editor.html +++ b/helm/searchEngine/html/editor.html @@ -4,7 +4,7 @@ qbf=/[[^\[\]<>]*|||]*/ function invia() { - window.open(top.ask_uwobo(top.topurl+"/execute?query="+escape(document.edit.qta.value)),"cw"); + window.open(top.ask_uwobo(top.topurl+"/execute?query="+encodeURIComponent(document.edit.qta.value)),"cw"); } function parse1() { diff --git a/helm/searchEngine/html/editorpdq.html b/helm/searchEngine/html/editorpdq.html index 21e803906..4e82f8faa 100644 --- a/helm/searchEngine/html/editorpdq.html +++ b/helm/searchEngine/html/editorpdq.html @@ -21,7 +21,7 @@ function nuovapdqsa() if (confirm("Are you sure you want to change expression?")) { top.terminecic=""; - document.invio.expression.value="";document.invio.aliaslist.value=unescape(top.listaliases); + document.invio.expression.value="";document.invio.aliaslist.value=decodeURIComponent(top.listaliases); top.ricordaliaslist=1; window.open(top.topurl+top.action+"pdq.html","cw"); window.open(top.topurl+top.action+"editorpdq.html","sw"); @@ -30,14 +30,14 @@ function nuovapdqsa() function invia() { if (document.invio.expression.value!="") - {top.terminecic=escape(document.invio.expression.value); + {top.terminecic=encodeURIComponent(document.invio.expression.value); top.listaliases=""; for (i=0;i @@ -85,6 +85,6 @@ function editaalias() - + diff --git a/helm/searchEngine/html/index.html b/helm/searchEngine/html/index.html index f047610b2..7e0dc270f 100644 --- a/helm/searchEngine/html/index.html +++ b/helm/searchEngine/html/index.html @@ -69,29 +69,29 @@ var interface_topurl="@topurl@"; function ask_uwobo(url) { return (top.topurl+"/ask_uwobo?url="+ - escape(processorURL + "apply?" + - "xmluri=" + escape(url) + - "&keys=" + escape(thkeys) + - "¶m.processorURL=" + escape(processorURL) + - "¶m.getterURL=" + escape(getterURL) + - "¶m.proofcheckerURL=" + escape(proofcheckerURL) + - "¶m.draw_graphURL=" + escape(draw_graphURL) + - "¶m.uri_set_queueURL=" + escape(uri_set_queueURL) + - "¶m.UNICODEvsSYMBOL=" + escape(UNICODEvsSYMBOL) + - "¶m.keys=" + escape(keys) + - "¶m.thkeys=" + escape(thkeys) + - "¶m.embedkeys=" + escape(embedkeys) + - "¶m.doctype-public=" + escape(doctype_public) + - "¶m.encoding=" + escape(encoding) + - "¶m.thencoding=" + escape(thencoding) + - "¶m.media-type=" + escape(media_type) + - "¶m.thmedia-type=" + escape(thmedia_type) + - "¶m.interfaceURL=" + escape(interfaceURL) + - "¶m.thinterfaceURL=" + escape(thinterfaceURL) + - "¶m.CICURI=" + escape(CICURI) + - "¶m.naturalLanguage=" + escape(naturalLanguage) + - "¶m.annotations=" + escape(annotations) + - "¶m.topurl=" + escape(interface_topurl) + + encodeURIComponent(processorURL + "apply?" + + "xmluri=" + encodeURIComponent(url) + + "&keys=" + encodeURIComponent(thkeys) + + "¶m.processorURL=" + encodeURIComponent(processorURL) + + "¶m.getterURL=" + encodeURIComponent(getterURL) + + "¶m.proofcheckerURL=" + encodeURIComponent(proofcheckerURL) + + "¶m.draw_graphURL=" + encodeURIComponent(draw_graphURL) + + "¶m.uri_set_queueURL=" + encodeURIComponent(uri_set_queueURL) + + "¶m.UNICODEvsSYMBOL=" + encodeURIComponent(UNICODEvsSYMBOL) + + "¶m.keys=" + encodeURIComponent(keys) + + "¶m.thkeys=" + encodeURIComponent(thkeys) + + "¶m.embedkeys=" + encodeURIComponent(embedkeys) + + "¶m.doctype-public=" + encodeURIComponent(doctype_public) + + "¶m.encoding=" + encodeURIComponent(encoding) + + "¶m.thencoding=" + encodeURIComponent(thencoding) + + "¶m.media-type=" + encodeURIComponent(media_type) + + "¶m.thmedia-type=" + encodeURIComponent(thmedia_type) + + "¶m.interfaceURL=" + encodeURIComponent(interfaceURL) + + "¶m.thinterfaceURL=" + encodeURIComponent(thinterfaceURL) + + "¶m.CICURI=" + encodeURIComponent(CICURI) + + "¶m.naturalLanguage=" + encodeURIComponent(naturalLanguage) + + "¶m.annotations=" + encodeURIComponent(annotations) + + "¶m.topurl=" + encodeURIComponent(interface_topurl) + "&prop.method=html")); } function help(w) // quando invocata, visualizza l' help relativo ad un oggetto. Di solito รจ legata ad un evento onFocus o onMouseOver. @@ -499,11 +499,11 @@ function templateambigpdq1_invia(document,top,elenco,ident) top.vlds[top.vlds.length]=";"; for (j=0;j