From 40f4c479dccda8fb16fa6027fb271d40f7f4dfa7 Mon Sep 17 00:00:00 2001 From: rpiazzi Date: Thu, 6 Oct 2011 11:23:29 +0000 Subject: Added redirection to https if http is called, to avoid unsecure problems with IE git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@855 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c --- pdf-as-web/src/main/webapp/jsp/signupload.jsp | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) (limited to 'pdf-as-web/src/main/webapp/jsp/signupload.jsp') diff --git a/pdf-as-web/src/main/webapp/jsp/signupload.jsp b/pdf-as-web/src/main/webapp/jsp/signupload.jsp index f3f8a48..1866c46 100644 --- a/pdf-as-web/src/main/webapp/jsp/signupload.jsp +++ b/pdf-as-web/src/main/webapp/jsp/signupload.jsp @@ -155,6 +155,11 @@ <% } %> + <% if ((serverUrl.contains("http")) && (!serverUrl.contains("https"))) { + baseUrl = baseUrl.replace("http","https"); %> + + <% } %> + @@ -261,7 +266,7 @@ //Function for changing the IFrame position and size when the error has to be //shown within the IFrame to no force a reload of the page - function moveErrorIFrame(object) { + function moveErrorIFrame(object,height) { var signSettings = document.getElementById('signaturesettings'); var signButtons = document.getElementById('sign'); var signIframe = document.getElementById('signiframe'); @@ -278,6 +283,7 @@ document.getElementById('descriptionduring').style.display='none' } document.getElementById('descriptionerror').style.display='block'; + document.getElementById('backlink').style.display='none'; inhalt.removeChild(signSettings); inhalt.removeChild(signButtons); @@ -288,7 +294,7 @@ document.getElementById('iframe').width = '460px'; document.getElementById('downloadsignbuttons').style.display='block'; - document.getElementById('downloadsignbuttons').style.height = document.submitform.height_sign_div.value; + document.getElementById('downloadsignbuttons').style.height = height; document.getElementById('localbku').style.display='none'; document.getElementById('backlink').style.display='none'; @@ -390,6 +396,7 @@ } var input = document.createElement('input'); input.style.verticalAlign = 'top'; + input.size = '15'; fakeFileUpload.appendChild(input); var img = document.createElement('img'); @@ -652,7 +659,7 @@
- +
<% } else {%>
@@ -671,7 +678,7 @@
- +
<% } %> <% } else { %> @@ -691,7 +698,7 @@
- +
<% } %>