[Laszlo-checkins] r12898 - openlaszlo/trunk/WEB-INF/lps/lfc/data
bargull@openlaszlo.org
bargull at openlaszlo.org
Tue Feb 17 08:50:52 PST 2009
Author: bargull
Date: 2009-02-17 08:50:49 -0800 (Tue, 17 Feb 2009)
New Revision: 12898
Modified:
openlaszlo/trunk/WEB-INF/lps/lfc/data/LzParsedPath.lzs
Log:
Change 20090216-bargull-vop by bargull at dell--p4--2-53 on 2009-02-16 21:00:36
in /home/Admin/src/svn/openlaszlo/trunk
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: fix xpath parser error
New Features:
Bugs Fixed: LPP-7720
Technical Reviewer: hminsky
QA Reviewer: (pending)
Doc Reviewer: (pending)
Documentation:
Release Notes:
Details:
Take care to re-join the remaining bits of the string after calling 'split'.
Tests:
testcase from bugreport
Modified: openlaszlo/trunk/WEB-INF/lps/lfc/data/LzParsedPath.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/data/LzParsedPath.lzs 2009-02-17 16:47:29 UTC (rev 12897)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/data/LzParsedPath.lzs 2009-02-17 16:50:49 UTC (rev 12898)
@@ -1,6 +1,6 @@
/**
*
- * @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
@@ -257,10 +257,10 @@
//Debug.write( 'found predicate ' + pred );
var attrpred = pred.split( '=' );
var a;
- var tattr = attrpred[ 0 ].substring(1);
+ var tattr = attrpred.shift().substring(1);
- if ( attrpred.length > 1 ){
- var aval = LzParsedPath.trim( attrpred[1] );
+ if ( attrpred.length > 0 ){
+ var aval = LzParsedPath.trim( attrpred.join( '=' ) );
aval = aval.substring( 1 , aval.length-1);
a = { pred : 'attrval' ,
attr : LzParsedPath.trim( tattr ),
More information about the Laszlo-checkins
mailing list