mirror of
https://github.com/octoleo/plantuml-server.git
synced 2024-12-22 08:48:54 +00:00
fix URL
This commit is contained in:
parent
eafc9c442c
commit
2680086893
@ -51,7 +51,7 @@ public class OldProxyServlet extends HttpServlet {
|
||||
/**
|
||||
* Proxy request URI regex pattern.
|
||||
*/
|
||||
private static final Pattern PROXY_PATTERN = Pattern.compile("/\\w+/proxy/((\\d+)/)?((\\w+)/)?(https?://.*)");
|
||||
private static final Pattern PROXY_PATTERN = Pattern.compile("/\\w+/proxy/((\\d+)/)?((\\w+)/)?(https?://[^@]*)");
|
||||
|
||||
@Override
|
||||
public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {
|
||||
|
@ -52,6 +52,9 @@ public class ProxyServlet extends HttpServlet {
|
||||
if (full == null) {
|
||||
return true;
|
||||
}
|
||||
if (full.contains("@")) {
|
||||
return true;
|
||||
}
|
||||
if (full.startsWith("https://") == false && full.startsWith("http://") == false) {
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user