Skip to content

Commit

Permalink
Skip over beginning / in request when comparing to token.
Browse files Browse the repository at this point in the history
  • Loading branch information
brycecurtis committed Jan 16, 2011
1 parent b9e1b1d commit b7abc2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/src/com/phonegap/CallbackServer.java
Expand Up @@ -195,7 +195,7 @@ public void run() {
String[] requestParts = request.split(" ");

// Must have security token
if ((requestParts.length == 3) && (requestParts[1].equals(this.token))) {
if ((requestParts.length == 3) && (requestParts[1].substring(1).equals(this.token))) {
//System.out.println("CallbackServer -- Processing GET request");

// Wait until there is some data to send, or send empty data every 10 sec
Expand Down

0 comments on commit b7abc2c

Please sign in to comment.