[Laszlo-checkins] r12318 - in openlaszlo/trunk/WEB-INF/lps/lfc: compiler services
hqm@openlaszlo.org
hqm at openlaszlo.org
Tue Jan 6 20:10:27 PST 2009
Author: hqm
Date: 2009-01-06 20:10:25 -0800 (Tue, 06 Jan 2009)
New Revision: 12318
Modified:
openlaszlo/trunk/WEB-INF/lps/lfc/compiler/LzRuntime.lzs
openlaszlo/trunk/WEB-INF/lps/lfc/services/LzBrowser.lzs
Log:
Change 20090106-hqm-O by hqm at badtzmaru.home on 2009-01-06 23:05:09 EST
in /Users/hqm/openlaszlo/trunk3/WEB-INF/lps/lfc
for http://svn.openlaszlo.org/openlaszlo/trunk/WEB-INF/lps/lfc
Summary: fix url escaping bug swf9
New Features:
Bugs Fixed: LPP-7532
Technical Reviewer: ptw
QA Reviewer: (pending)
Doc Reviewer: (pending)
Documentation:
Release Notes:
Details:
+ use encodeURIComponent in lzBrowser
+ deprecate LzBrowser.urlEscape
+ add alias for decodeURIComponent in as2 runtime
Tests:
demos/amazon/amazon.lzx in swf8,swf9,dhtml
test/rpc/javarpc/simple.lzx in swf8,swf9,dhtml
test/lfc/data/alldata.lzx (alldata.lzx has bugs, but there should be no regressions from pre-changeset behavior in trunk)
demos/lzpix/app.lzx in swf8,swf9,dhtml
demos/calendar/calendar.lzx in swf8,swf9,dhtml
Modified: openlaszlo/trunk/WEB-INF/lps/lfc/compiler/LzRuntime.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/compiler/LzRuntime.lzs 2009-01-07 00:03:53 UTC (rev 12317)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/compiler/LzRuntime.lzs 2009-01-07 04:10:25 UTC (rev 12318)
@@ -1,7 +1,7 @@
/* -*- mode: JavaScript; c-basic-offset: 2; -*- */
/**
- * @copyright Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved.
+ * @copyright Copyright 2001-2009 Laszlo Systems, Inc. All Rights Reserved.
* Use is subject to license terms.
*
* @access private
@@ -128,6 +128,7 @@
if ($as2) {
var encodeURIComponent = escape;
+var decodeURIComponent = unescape;
}
/**
Modified: openlaszlo/trunk/WEB-INF/lps/lfc/services/LzBrowser.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/services/LzBrowser.lzs 2009-01-07 00:03:53 UTC (rev 12317)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/services/LzBrowser.lzs 2009-01-07 04:10:25 UTC (rev 12318)
@@ -1,5 +1,5 @@
/**
- * @copyright Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved.
+ * @copyright Copyright 2001-2009 Laszlo Systems, Inc. All Rights Reserved.
* Use is subject to license terms.
*
* @affects lzbrowser
@@ -335,9 +335,13 @@
* Escape a string using URL encoding.
* @param String str: The string to escape
* @return String: An URL escaped string
+ * @deprecated Use encodeURIComponent(string) instead.
*/
function urlEscape (str:String) :String {
- return escape( str );
+ if ($debug) {
+ Debug.info('lz.Browser.urlEscape is deprecated, use encodeURIComponent instead');
+ }
+ return encodeURIComponent( str );
}
/**
@@ -346,7 +350,10 @@
* @return String: An URL decoded string
*/
function urlUnescape (str:String) :String {
- return unescape( str.split('+').join(' ') );
+ if ($debug) {
+ Debug.info('lz.Browser.urlUnescape is deprecated, use decodeURIComponent instead');
+ }
+ return decodeURIComponent(str);
}
/** @access private */
More information about the Laszlo-checkins
mailing list