-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from conwetlab/develop
Fix Security Issues
- Loading branch information
Showing
16 changed files
with
384 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<taglib | ||
xmlns="http://java.sun.com/xml/ns/javaee" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd" | ||
version="2.1"> | ||
|
||
<display-name>Custom Functions</display-name> | ||
<tlib-version>1.0</tlib-version> | ||
<uri>http://fiware.org/functions</uri> | ||
|
||
<function> | ||
<name>escapeJS</name> | ||
<function-class>org.apache.commons.lang3.StringEscapeUtils</function-class> | ||
<function-signature>java.lang.String escapeEcmaScript(java.lang.String)</function-signature> | ||
</function> | ||
<function> | ||
<name>unescapeHTML</name> | ||
<function-class>org.apache.commons.lang3.StringEscapeUtils</function-class> | ||
<function-signature>java.lang.String unescapeHtml4(java.lang.String)</function-signature> | ||
</function> | ||
</taglib> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,23 @@ | ||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> | ||
<%@ taglib prefix="util" uri="http://fiware.org/functions" %> | ||
|
||
<script src="${ pageContext.request.contextPath }/resources/marketplace/js/views/stores/form.js"></script> | ||
<c:choose> | ||
<c:when test="${ not empty form_data }"> | ||
<script> | ||
app.view.storeForm | ||
<c:forEach var="field" items="${ form_data }"> | ||
.addInitialValue("${ field.key }", "${ field.value }") | ||
.addInitialValue("${ field.key }", "${ util:escapeJS(field.value) }") | ||
</c:forEach> | ||
.addErrorMessage("${ form_error.fieldName }", "${ form_error.fieldError }") | ||
</script> | ||
</c:when> | ||
<c:when test="${ not empty store }"> | ||
<script> | ||
app.view.storeForm | ||
.addInitialValue("displayName", "${ store.displayName }") | ||
.addInitialValue("url", "${ store.url }") | ||
.addInitialValue("comment", "${ store.comment }") | ||
.addInitialValue("displayName", "${ util:escapeJS(store.displayName) }") | ||
.addInitialValue("url", "${ util:escapeJS(store.url) }") | ||
.addInitialValue("comment", "${ util:escapeJS(store.comment) }") | ||
</script> | ||
</c:when> | ||
</c:choose> |
Oops, something went wrong.