shuber 2005/09/02 11:44:20 CEST
Modified files: (Branch: JAHIA-4-1-BRANCH)
src/views/jsp/jahia/errors error_include.js
Log:
Fix for JAHIA-293 contributed by Benjamin Papez, thanks.
http://www.jahia.org/jira/browse/JAHIA-293
Revision Changes Path
1.3.4.1.2.1 +5 -0 jahia/src/views/jsp/jahia/errors/error_include.js
http://jahia.mine.nu:8080/cgi-bin/cvsweb.cgi/jahia/src/views/jsp/jahia/errors/error_include.js.diff?r1=1.3.4.1&r2=1.3.4.1.2.1&f=h
Index: error_include.js
===================================================================
RCS file:
/home/cvs/repository/jahia/src/views/jsp/jahia/errors/Attic/error_include.js,v
retrieving revision 1.3.4.1
retrieving revision 1.3.4.1.2.1
diff -u -r1.3.4.1 -r1.3.4.1.2.1
--- error_include.js 28 Oct 2004 18:08:38 -0000 1.3.4.1
+++ error_include.js 2 Sep 2005 09:44:19 -0000 1.3.4.1.2.1
@@ -19,6 +19,11 @@
}
} else {
var posB = oldurl.indexOf( "?" );
+ //added by PAP to check if there is a request path segment
parameter
+ var posC = oldurl.indexOf( ";" );
+ if (posB == -1 || (posC < posB && posC != -1)) {
+ posB = posC;
+ }
if (posB != -1) {
oldurl = oldurl.substring( 0, posB ) +"/engineName/" +
engineName + oldurl.substring( posB, oldurl.length );
} else {