Fixed auth cookie parsing
authorChristos Stathis <chstath@ebs.gr>
Mon, 7 Nov 2011 11:08:59 +0000 (13:08 +0200)
committerChristos Stathis <chstath@ebs.gr>
Mon, 7 Nov 2011 11:08:59 +0000 (13:08 +0200)
web_client/src/gr/grnet/pithos/web/client/Pithos.java

index 47f1ac8..8de2a99 100644 (file)
@@ -566,6 +566,10 @@ public class Pithos implements EntryPoint, ResizeHandler {
                 authenticateUser();
                 return false;
             }
+            if (auth.startsWith("\""))
+               auth = auth.substring(1);
+            if (auth.endsWith("\""))
+               auth = auth.substring(0, auth.length() - 1);
                        String[] authSplit = auth.split("\\" + conf.cookieSeparator(), 2);
                        if (authSplit.length != 2) {
                            authenticateUser();