Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Address a few codeql reports #562

Merged
merged 1 commit into from
Jan 16, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ protected ModelAndView handleRequest(HttpServletRequest request, HttpServletResp
Formatter f = new Formatter();
f.format("Error reading catalog '%s' err=%s%n", uri, builder.getErrorMessage());
if (!uri.toString().toLowerCase(Locale.ROOT).endsWith(".xml")) {
f.format("Expected catalog uri = '" + uri + "' to end with '.xml'");
f.format("Expected catalog uri = '%s' to end with '.xml'", uri);
}
log.debug(f.toString());
response.sendError(HttpServletResponse.SC_BAD_REQUEST, f.toString());
Expand Down
8 changes: 6 additions & 2 deletions tds/src/main/webapp/WEB-INF/templates/gridFragments.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,14 @@
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/openlayers/4.6.5/ol.css">

<!-- "script" elements must have explicit closing tags. See https://stackoverflow.com/questions/69913 -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/openlayers/4.6.5/ol.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/openlayers/4.6.5/ol.js"
integrity="sha512-O7kHS9ooekX8EveiC94z9xSvD/4xt10Qigl6uEKvspYykdux3Ci5QNu5fwi4ca0ZkZI/oCgx5ja8RklWUEqzxQ=="
crossorigin="anonymous"></script>
<!-- As of 2018-02-08, Safari and Edge do not natively support the "FormData.entries()" method, which we utilize in
buildAccessUrl(). This provides a replacement implementation. See https://github.com/jimmywarting/FormData. -->
<script src="https://cdn.rawgit.com/jimmywarting/FormData/3.0.9/FormData.js"></script>
<script src="https://cdn.jsdelivr.net/npm/formdata-polyfill@3.0.9/FormData.js"
integrity="sha512-eD45qyxOI5rIMbPhYEo/VgzoYP37DTaWTjYPqfgCOCd/SWiFtuYJVoElCxhGkHMaBwJpM55679FP1KVMfdvl1A=="
crossorigin="anonymous"></script>
<script type="text/javascript" src="../../js/ncss/ncssApp.js" th:src="@{/js/ncss/ncssApp.js}"></script>
<script type="text/javascript" th:inline="javascript">
var horizExtentWKT = /*[[${horizExtentWKT}]]*/ 'POLYGON((-90 45, 90 45, 90 -45, -90 -45, -90 45))';
Expand Down
8 changes: 6 additions & 2 deletions tds/src/main/webapp/WEB-INF/templates/pointFragments.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,14 @@
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/openlayers/4.6.5/ol.css">

<!-- "script" elements must have explicit closing tags. See https://stackoverflow.com/questions/69913 -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/openlayers/4.6.5/ol.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/openlayers/4.6.5/ol.js"
integrity="sha512-O7kHS9ooekX8EveiC94z9xSvD/4xt10Qigl6uEKvspYykdux3Ci5QNu5fwi4ca0ZkZI/oCgx5ja8RklWUEqzxQ=="
crossorigin="anonymous"></script>
<!-- As of 2018-02-08, Safari and Edge do not natively support the "FormData.entries()" method, which we utilize in
buildAccessUrl(). This provides a replacement implementation. See https://github.com/jimmywarting/FormData. -->
<script src="https://cdn.rawgit.com/jimmywarting/FormData/3.0.9/FormData.js"></script>
<script src="https://cdn.jsdelivr.net/npm/formdata-polyfill@3.0.9/FormData.js"
integrity="sha512-eD45qyxOI5rIMbPhYEo/VgzoYP37DTaWTjYPqfgCOCd/SWiFtuYJVoElCxhGkHMaBwJpM55679FP1KVMfdvl1A=="
crossorigin="anonymous"></script>
<script type="text/javascript" src="../../js/ncss/ncssApp.js" th:src="@{/js/ncss/ncssApp.js}"></script>

<script type="text/javascript" th:inline="javascript">
Expand Down
Loading