Skip to content

Commit

Permalink
NMS-15504: Prevent angular expr eval without app
Browse files Browse the repository at this point in the history
Do not spawn a default app when there is no real app end prevent
evaluation of angular expressions if no app is defined.
  • Loading branch information
fooker committed Jul 17, 2023
1 parent 5a3b0b6 commit 13a3683
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion opennms-webapp/src/main/webapp/WEB-INF/templates/navbar.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@
</ul>
</#if>

<onms-central-search></onms-central-search>
<div ng-app="onms.default.apps">
<onms-central-search></onms-central-search>
</div>

<ul class="navbar-nav ml-auto">
<#if request.remoteUser?has_content >
Expand Down
2 changes: 1 addition & 1 deletion opennms-webapp/src/main/webapp/includes/bootstrap.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@
ng-app="${param.ngapp}"
</c:when>
<c:otherwise>
ng-app="onms.default.apps"
ng-non-bindable
</c:otherwise>
</c:choose>
<c:if test="${param.scrollSpy != null}">
Expand Down

0 comments on commit 13a3683

Please sign in to comment.