[Httpunit-commit] CVS: httpunit/src/com/meterware/httpunit WebResponse.java,1.106,1.107
Brought to you by:
russgold
|
From: Russell G. <rus...@us...> - 2003-02-05 05:15:54
|
Update of /cvsroot/httpunit/httpunit/src/com/meterware/httpunit
In directory sc8-pr-cvs1:/tmp/cvs-serv27511/src/com/meterware/httpunit
Modified Files:
WebResponse.java
Log Message:
Handle quotes in refresh tags
Index: WebResponse.java
===================================================================
RCS file: /cvsroot/httpunit/httpunit/src/com/meterware/httpunit/WebResponse.java,v
retrieving revision 1.106
retrieving revision 1.107
diff -u -r1.106 -r1.107
--- WebResponse.java 4 Feb 2003 05:32:03 -0000 1.106
+++ WebResponse.java 5 Feb 2003 05:15:51 -0000 1.107
@@ -912,10 +912,11 @@
private String getRefreshURL( String text ) {
text = text.trim();
if (!text.toUpperCase().startsWith( "URL" )) {
- return text;
+ return HttpUnitUtils.stripQuotes( text );
} else {
int splitIndex = text.indexOf( '=' );
- return text.substring( splitIndex+1 ).trim();
+ String value = text.substring( splitIndex+1 ).trim();
+ return HttpUnitUtils.stripQuotes( value );
}
}
|