diff --git a/api/pom.xml b/api/pom.xml index 571cf7dc..a43cd43e 100644 --- a/api/pom.xml +++ b/api/pom.xml @@ -15,7 +15,7 @@ org.openmrs.module legacyui - 1.18.0-SNAPSHOT + 1.19.0-SNAPSHOT legacyui-api diff --git a/omod/pom.xml b/omod/pom.xml index d830ccee..cdcc11b3 100644 --- a/omod/pom.xml +++ b/omod/pom.xml @@ -15,7 +15,7 @@ org.openmrs.module legacyui - 1.18.0-SNAPSHOT + 1.19.0-SNAPSHOT legacyui-omod diff --git a/omod/src/main/webapp/admin/encounters/encounterForm.jsp b/omod/src/main/webapp/admin/encounters/encounterForm.jsp index 5b1f4aa4..d5bebf32 100644 --- a/omod/src/main/webapp/admin/encounters/encounterForm.jsp +++ b/omod/src/main/webapp/admin/encounters/encounterForm.jsp @@ -307,7 +307,7 @@
- ${encounter.patient.personName} +
() diff --git a/omod/src/main/webapp/admin/patients/patientForm.jsp b/omod/src/main/webapp/admin/patients/patientForm.jsp index defccf15..d26498c5 100644 --- a/omod/src/main/webapp/admin/patients/patientForm.jsp +++ b/omod/src/main/webapp/admin/patients/patientForm.jsp @@ -182,6 +182,21 @@ obj.parentNode.removeChild(obj); } + function beforeSubmit() { + removeBlankData() + + sanitizeFields(); + + return true; + + } + + function sanitizeFields(){ + var inputfields=document.querySelectorAll('input[type="text"]'); + inputfields.forEach(function(input) { + input.value = html_sanitize(input.value); + }); + } function preferredBoxClick(obj) { var inputs = document.getElementsByTagName("input"); if (obj.checked == true) { @@ -345,7 +360,7 @@ -
+

diff --git a/omod/src/main/webapp/uncaughtException.jsp b/omod/src/main/webapp/uncaughtException.jsp index 606539ae..53f29c91 100644 --- a/omod/src/main/webapp/uncaughtException.jsp +++ b/omod/src/main/webapp/uncaughtException.jsp @@ -253,7 +253,7 @@ %>

<% - response.sendRedirect("login.htm"); + response.sendRedirect(request.getContextPath() + "/login.htm"); } %> diff --git a/pom.xml b/pom.xml index c5e7dce9..a77d86b7 100644 --- a/pom.xml +++ b/pom.xml @@ -21,7 +21,7 @@ org.openmrs.module legacyui - 1.18.0-SNAPSHOT + 1.19.0-SNAPSHOT pom Legacy UI Module Provides the legacy UI which was removed from the platform since version 2.0