jbonofre commented on code in PR #2892:
URL: https://github.com/apache/karaf/pull/2892#discussion_r4022569473
##########
webconsole/gogo/src/main/java/org/apache/karaf/webconsole/gogo/GogoPlugin.java:
##########
@@ -97,7 +97,7 @@ public void renderContent(HttpServletRequest request,
HttpServletResponse respon
@Override
protected URL getResource(String path) {
path = path.substring(NAME.length() + 1);
- if (path == null || path.isEmpty()) {
+ if (path == null || path.isEmpty() || !path.startsWith("/res/")) {
Review Comment:
Thanks! Actually the path null guard should be before substring. Let me fix
that (it was like this before, not related to this PR).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]