diff options
author | Ugnich Anton | 2013-06-21 00:16:11 +0700 |
---|---|---|
committer | Ugnich Anton | 2013-06-21 00:16:11 +0700 |
commit | df529650d03296bf03ade8c0eed4a2fcc404a041 (patch) | |
tree | 9a8bde9365b6f26a54aa660acd873c68e496a7e0 /src/java/com/juick/api/Main.java | |
parent | 0dfa3b0cf640f4b95a3cdfdf8c32ae764d3ff5dd (diff) |
Bugfix
Diffstat (limited to 'src/java/com/juick/api/Main.java')
-rw-r--r-- | src/java/com/juick/api/Main.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/java/com/juick/api/Main.java b/src/java/com/juick/api/Main.java index d32a00aa..ebbeb103 100644 --- a/src/java/com/juick/api/Main.java +++ b/src/java/com/juick/api/Main.java @@ -125,7 +125,7 @@ public class Main extends HttpServlet { response.setHeader("Access-Control-Allow-Origin", "*"); String callback = request.getParameter("callback"); - if (callback.length() > 64 || !callback.matches("a-zA-Z0-9\\-")) { + if (callback != null && (callback.length() > 64 || !callback.matches("[a-zA-Z0-9\\-]+"))) { callback = null; } |