[Httpunit-commit] CVS: httpunit/src/com/meterware/httpunit/javascript JavaScript.java,1.56,1.57
Brought to you by:
russgold
From: Russell G. <rus...@us...> - 2003-10-27 23:12:20
|
Update of /cvsroot/httpunit/httpunit/src/com/meterware/httpunit/javascript In directory sc8-pr-cvs1:/tmp/cvs-serv20882/src/com/meterware/httpunit/javascript Modified Files: JavaScript.java Log Message: be more tolerant of bad values in Javascript cookie setting Index: JavaScript.java =================================================================== RCS file: /cvsroot/httpunit/httpunit/src/com/meterware/httpunit/javascript/JavaScript.java,v retrieving revision 1.56 retrieving revision 1.57 diff -u -r1.56 -r1.57 --- JavaScript.java 2 Oct 2003 02:43:47 -0000 1.56 +++ JavaScript.java 27 Oct 2003 21:16:10 -0000 1.57 @@ -550,6 +550,7 @@ public void jsSet_cookie( String cookieSpec ) { final int equalsIndex = cookieSpec.indexOf( '=' ); + if (equalsIndex <0) return; int endIndex = cookieSpec.indexOf( ";", equalsIndex ); if (endIndex < 0) endIndex = cookieSpec.length(); String name = cookieSpec.substring( 0, equalsIndex ); |