History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: LPP-5277
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: P0 P0
Assignee: Unassigned
Reporter: Zvi Schreiber
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
OpenLaszlo

LzBrowser.urlUnescape does not unescape + chars on DHTML environment

Created: 18/Dec/07 05:01 AM   Updated: 30/Jan/08 04:54 PM
Component/s: Browser Integration
Affects Version/s: Legals
Fix Version/s: RingDing (4.1)

Time Tracking:
Not Specified

Environment: 4.0.6 DHTML

Severity: Minor
Fixed in Change#: 7,776
Runtime: N/A
Fix in hand: False


 Description  « Hide
SWF: LzBrowser.urlUnescape('a+b') == 'a b'
DHTML: LzBrowser.urlUnescape('a+b') == 'a+b'

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Max Carlson - 08/Jan/08 07:00 PM
Author: max
Date: 2008-01-08 18:59:23 -0800 (Tue, 08 Jan 2008)
New Revision: 7776

Modified:
   openlaszlo/trunk/WEB-INF/lps/lfc/services/platform/dhtml/LzBrowser.js
Log:
Change 20080106-maxcarlson-I by maxcarlson@Roboto.lan on 2008-01-06 22:14:21 PST
    in /Users/maxcarlson/openlaszlo/trunk
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: Fix URI-unescaping in DHTML to convert + to spaces

New Features:

Bugs Fixed: LPP-5277 - LzBrowser.urlUnescape does not unescape + chars on DHTML environment

Technical Reviewer: ptw
QA Reviewer: promanik
Doc Reviewer: (pending)

Documentation:

Release Notes:

Details: Convert + to ' ' before unescaping strings.
    

Tests: See LPP-5277



Modified: openlaszlo/trunk/WEB-INF/lps/lfc/services/platform/dhtml/LzBrowser.js
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/services/platform/dhtml/LzBrowser.js 2008-01-09 00:14:09 UTC (rev 7775)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/services/platform/dhtml/LzBrowser.js 2008-01-09 02:59:23 UTC (rev 7776)
@@ -1,6 +1,6 @@
 /**
   *
- * @copyright Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved.
+ * @copyright Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved.
   * Use is subject to license terms.
   *
   * @affects lzbrowser
@@ -264,7 +264,7 @@
   * @return: An URL decoded string
   */
 LzBrowser.urlUnescape = function (str) {
- return unescape( str );
+ return unescape( str.split('+').join(' ') );
 }
 
 


_______________________________________________
Laszlo-checkins mailing list
Laszlo-checkins@openlaszlo.org
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins

Mamye Kratt - 30/Jan/08 04:54 PM
(trunk 4 local build r7930)

LzBrowser.urlUnescape('a+b') == 'a b' is true in both swf and dhtml
LzBrowser.urlUnescape('a+b') == 'a+b' is false in both swf and dhtml