ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/corbaservices/uk/org/iscream/cms/corbaservices/MiniWebServer.java
(Generate patch)

Comparing projects/cms/source/corbaservices/uk/org/iscream/cms/corbaservices/MiniWebServer.java (file contents):
Revision 1.6 by tdb, Tue May 29 17:24:16 2001 UTC vs.
Revision 1.7 by tdb, Fri Apr 5 11:54:35 2002 UTC

# Line 232 | Line 232 | public class MiniWebServer extends Thread {
232                  do {
233                      line = reader.readLine();
234                      // ah, this contains the URL
235 <                    if(line.startsWith("GET")) {
235 >                    if(line.startsWith("GET ")) {
236                          // strip off "GET "
237                          url = line.substring(4);
238                          // strip off anything past the URL
239 <                        url = url.substring(0, url.lastIndexOf(' '));
239 >                        if(url.lastIndexOf(' ') != -1) {
240 >                            url = url.substring(0, url.lastIndexOf(' '));
241 >                        }
242                      }
243                  } while(!line.equals(""));
244                  // check the URL is allowed

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines