File tree Expand file tree Collapse file tree 3 files changed +37
-0
lines changed Expand file tree Collapse file tree 3 files changed +37
-0
lines changed Original file line number Diff line number Diff line change 1+ #
2+ # just a backend for the main RegexPlanet.com site: go there to index stuff!
3+ #
4+ User-agent: *
5+ Disallow: /
Original file line number Diff line number Diff line change 1+ <%@ page contentType =" text/plain;charset=utf-8"
2+ import="java.io.*,
3+ java.util.*,
4+ java.util.regex.*,
5+ org.json.simple.*,
6+ com.google.common.base.*,
7+ org.apache.commons.lang3.*,
8+ org.apache.commons.lang3.math.*"
9+ %><%
10+
11+ Locale loc = request. getLocale();
12+
13+ JSONObject retVal = new JSONObject ();
14+
15+ retVal. put(" success" , Boolean . TRUE );
16+ retVal. put(" message" , " OK" );
17+
18+ String json = retVal. toString();
19+ String callback = request. getParameter(" callback" );
20+ if (callback != null && callback. matches(" [a-zA-Z][-a-zA-Z0-9_]*" ))
21+ {
22+ out. print(callback);
23+ out. print(" (" );
24+ out. print(json);
25+ out. print(" );" );
26+ }
27+ else
28+ {
29+ out. print(json);
30+ }
31+ % >
32+
You can’t perform that action at this time.
0 commit comments