1
0
mirror of https://github.com/octoleo/plantuml-server.git synced 2024-12-22 00:38:54 +00:00

Improve tests

This commit is contained in:
Arnaud Roques 2022-12-06 18:52:30 +01:00
parent 4d65def8bb
commit 0154160c7d

View File

@ -64,6 +64,9 @@ public class ProxyServlet extends HttpServlet {
}
public static boolean forbiddenURL(String full) {
if (full == null) {
return true;
}
if (full.startsWith("https://") == false && full.startsWith("http://") == false) {
return true;
}