From b7abc2c344374f5807aa7b1b33801345cd8d8c7c Mon Sep 17 00:00:00 2001 From: Bryce Curtis Date: Sun, 16 Jan 2011 15:15:24 -0600 Subject: [PATCH] Skip over beginning / in request when comparing to token. --- framework/src/com/phonegap/CallbackServer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/src/com/phonegap/CallbackServer.java b/framework/src/com/phonegap/CallbackServer.java index ea46efd1..e99692d0 100755 --- a/framework/src/com/phonegap/CallbackServer.java +++ b/framework/src/com/phonegap/CallbackServer.java @@ -195,7 +195,7 @@ public class CallbackServer implements Runnable { 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