mirror of
https://github.com/octoleo/plantuml-server.git
synced 2024-12-23 01:08: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.
|
* 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
|
@Override
|
||||||
public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {
|
public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {
|
||||||
|
@ -52,6 +52,9 @@ public class ProxyServlet extends HttpServlet {
|
|||||||
if (full == null) {
|
if (full == null) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
if (full.contains("@")) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
if (full.startsWith("https://") == false && full.startsWith("http://") == false) {
|
if (full.startsWith("https://") == false && full.startsWith("http://") == false) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user