details: /erp/devel/pi/rev/28c49c8d1f24 changeset: 8245:28c49c8d1f24 user: Iván Perdomo <ivan.perdomo <at> openbravo.com> date: Fri Aug 27 16:10:19 2010 +0200 summary: Issue 14341: Update license, removed tailing spaces
details: /erp/devel/pi/rev/9ce8691c8917 changeset: 8246:9ce8691c8917 user: Iván Perdomo <ivan.perdomo <at> openbravo.com> date: Fri Aug 27 16:26:01 2010 +0200 summary: Issue 14341: Update license details: /erp/devel/pi/rev/5cfe90ce813f changeset: 8247:5cfe90ce813f user: Iván Perdomo <ivan.perdomo <at> openbravo.com> date: Fri Aug 27 16:36:08 2010 +0200 summary: Fixes issue 14341: Fixes encoding when using not ascii characters - Fixed the places where we use escape() javascript function to use encodeURIComponent() since. More information about the difference between the result of both functions at: http://xkr.us/articles/javascript/encode-compare/ - Updated revision control to trigger clear browser's cache diffstat: src/org/openbravo/erpCommon/security/Login_F1.html | 2 +- web/js/ajax.js | 14 +++++++------- web/js/searchs.js | 16 ++++++++-------- web/js/utils.js | 16 ++++++++-------- 4 files changed, 24 insertions(+), 24 deletions(-) diffs (151 lines): diff -r 72905960b33c -r 5cfe90ce813f src/org/openbravo/erpCommon/security/Login_F1.html --- a/src/org/openbravo/erpCommon/security/Login_F1.html Fri Aug 27 14:26:07 2010 +0200 +++ b/src/org/openbravo/erpCommon/security/Login_F1.html Fri Aug 27 16:36:08 2010 +0200 @@ -111,7 +111,7 @@ clearForm(); } catch (e) {} setWindowElementFocus('firstElement'); - if ((!revisionControl('8215')) || (isOpsInstance() != isOpsInstanceCached())) { + if ((!revisionControl('8244')) || (isOpsInstance() != isOpsInstanceCached())) { alert(cacheMsg); } diff -r 72905960b33c -r 5cfe90ce813f web/js/ajax.js --- a/web/js/ajax.js Fri Aug 27 14:26:07 2010 +0200 +++ b/web/js/ajax.js Fri Aug 27 16:36:08 2010 +0200 @@ -4,15 +4,15 @@ * Version 1.0 (the "License"), being the Mozilla Public License * Version 1.1 with a permitted attribution clause; you may not use this * file except in compliance with the License. You may obtain a copy of - * the License at http://www.openbravo.com/legal/license.html + * the License at http://www.openbravo.com/legal/license.html * Software distributed under the License is distributed on an "AS IS" * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the * License for the specific language governing rights and limitations - * under the License. - * The Original Code is Openbravo ERP. - * The Initial Developer of the Original Code is Openbravo SLU - * All portions are Copyright (C) 2001-2009 Openbravo SLU - * All Rights Reserved. + * under the License. + * The Original Code is Openbravo ERP. + * The Initial Developer of the Original Code is Openbravo SLU + * All portions are Copyright (C) 2001-2010 Openbravo SLU + * All Rights Reserved. * Contributor(s): ______________________________________. ************************************************************************ */ @@ -136,7 +136,7 @@ alert("Your browser doesn't support this technology"); return false; } - var sendText = "Command=" + escape(Command); + var sendText = "Command=" + encodeURIComponent(Command); sendText += "&IsAjaxCall=1"; var length = formObject.elements.length; for (var i=0;i<length;i++) { diff -r 72905960b33c -r 5cfe90ce813f web/js/searchs.js --- a/web/js/searchs.js Fri Aug 27 14:26:07 2010 +0200 +++ b/web/js/searchs.js Fri Aug 27 16:36:08 2010 +0200 @@ -4,15 +4,15 @@ * Version 1.0 (the "License"), being the Mozilla Public License * Version 1.1 with a permitted attribution clause; you may not use this * file except in compliance with the License. You may obtain a copy of - * the License at http://www.openbravo.com/legal/license.html + * the License at http://www.openbravo.com/legal/license.html * Software distributed under the License is distributed on an "AS IS" * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the * License for the specific language governing rights and limitations - * under the License. - * The Original Code is Openbravo ERP. - * The Initial Developer of the Original Code is Openbravo SLU - * All portions are Copyright (C) 2001-2009 Openbravo SLU - * All Rights Reserved. + * under the License. + * The Original Code is Openbravo ERP. + * The Initial Developer of the Original Code is Openbravo SLU + * All portions are Copyright (C) 2001-2010 Openbravo SLU + * All Rights Reserved. * Contributor(s): ______________________________________. ************************************************************************ */ @@ -82,7 +82,7 @@ if (strWindow==null) strWindow="SELECTOR"; if (strValueID!=null && strValueID!="") { - auxField = "inpNameValue=" + escape(strValueID); + auxField = "inpNameValue=" + encodeURIComponent(strValueID); } var hidden; if (parameters!=null) { @@ -90,7 +90,7 @@ for (var i=0;i<total;i++) { if (auxField!="") auxField+="&"; if (parameters[i]=="isMultiLine" && parameters[i+1]=="Y") gIsMultiLineSearch=true; - auxField += parameters[i] + "=" + ((parameters[i+1]!=null)?escape(parameters[i+1]):""); + auxField += parameters[i] + "=" + ((parameters[i+1]!=null)?encodeURIComponent(parameters[i+1]):""); if (parameters[i]=="Command") hidden=true; i++; } diff -r 72905960b33c -r 5cfe90ce813f web/js/utils.js --- a/web/js/utils.js Fri Aug 27 14:26:07 2010 +0200 +++ b/web/js/utils.js Fri Aug 27 16:36:08 2010 +0200 @@ -4,15 +4,15 @@ * Version 1.0 (the "License"), being the Mozilla Public License * Version 1.1 with a permitted attribution clause; you may not use this * file except in compliance with the License. You may obtain a copy of - * the License at http://www.openbravo.com/legal/license.html + * the License at http://www.openbravo.com/legal/license.html * Software distributed under the License is distributed on an "AS IS" * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the * License for the specific language governing rights and limitations * under the License. * The Original Code is Openbravo ERP. - * The Initial Developer of the Original Code is Openbravo SLU + * The Initial Developer of the Original Code is Openbravo SLU * All portions are Copyright (C) 2001-2010 Openbravo SLU - * All Rights Reserved. + * All Rights Reserved. * Contributor(s): ______________________________________. ************************************************************************ */ @@ -89,7 +89,7 @@ * Return a number that would be checked at the Login screen to know if the file is cached with the correct version */ function getCurrentRevision() { - var number = '8215'; + var number = '8244'; return number; } @@ -3456,26 +3456,26 @@ for (var fieldsCount=0;fieldsCount<length;fieldsCount++) { if (field.options[fieldsCount].selected) { if (result!="") result += "&"; - result += name + "=" + escape(field.options[fieldsCount].value); + result += name + "=" + encodeURIComponent(field.options[fieldsCount].value); } } return result; } } else if (field.type.toUpperCase().indexOf("RADIO")!=-1 || field.type.toUpperCase().indexOf("CHECK")!=-1) { if (!field.length) { - if (field.checked) return (name + "=" + escape(field.value)); + if (field.checked) return (name + "=" + encodeURIComponent(field.value)); else return ""; } else { var total = field.length; for (var i=0;i<total;i++) { if (field[i].checked) { if (result!="") result += "&"; - result += name + "=" + escape(field[i].value); + result += name + "=" + encodeURIComponent(field[i].value); } } return result; } - } else return name + "=" + escape(field.value); + } else return name + "=" + encodeURIComponent(field.value); } return ""; ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d _______________________________________________ Openbravo-commits mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openbravo-commits
