You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by lu...@apache.org on 2003/05/14 19:36:52 UTC
cvs commit: jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/runtime PageContextImpl.java
luehe 2003/05/14 10:36:52
Modified: jasper2/src/share/org/apache/jasper/runtime
PageContextImpl.java
Log:
Fixed Bugtraq 4863390: EL evaluation error no longer discloses root cause
Reviewed by: Kin-Man Chung
Revision Changes Path
1.48 +10 -6 jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/runtime/PageContextImpl.java
Index: PageContextImpl.java
===================================================================
RCS file: /home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/runtime/PageContextImpl.java,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -r1.47 -r1.48
--- PageContextImpl.java 31 Mar 2003 17:54:31 -0000 1.47
+++ PageContextImpl.java 14 May 2003 17:36:52 -0000 1.48
@@ -742,9 +742,13 @@
functionMap);
}
});
- } catch( PrivilegedActionException ex ) {
- Exception e = ex.getException();
- throw new ELException( e );
+ } catch (PrivilegedActionException ex) {
+ Exception realEx = ex.getException();
+ if (realEx instanceof ELException) {
+ throw (ELException) realEx;
+ } else {
+ throw new ELException(realEx);
+ }
}
} else {
retValue = elExprEval.evaluate(expression,
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org