fiz
Leonardo Vannucci
2018-09-19 a7fea618a7e5c86beb125b72862822780d2cbb2f
fiz
2 files modified
6 ■■■■■ changed files
dg1cloud-core/src/main/java/it/digione/dg1cloud/controller/StartURPController.java 2 ●●● patch | view | raw | blame | history
dg1cloud-core/src/main/resources/templates/startURP.html 4 ●●● patch | view | raw | blame | history
dg1cloud-core/src/main/java/it/digione/dg1cloud/controller/StartURPController.java
....@@ -193,7 +193,7 @@
193193 if ( "text/plain".equalsIgnoreCase(allegato.getContentType()) == true ) {
194194 dh = new DataHandler(new String(allegato.getBytes()), allegato.getContentType());
195195 } else {
196
- dh = new DataHandler(allegato.getBytes(), allegato.getContentType());
196
+ dh = new DataHandler(allegato.getBytes(), "application/octet-stream");
197197 }
198198 attachment.setData(dh);
199199 } catch (IOException e) {
dg1cloud-core/src/main/resources/templates/startURP.html
....@@ -67,10 +67,8 @@
6767 th:text="${error}"></p>
6868 </div>
6969 <div class="form-group">
70
+ <div th:if="${#fields.hasErrors('reCaptchaResponse')}" th:text="'Errore validazione reCAPTCHA'" th:class="${'alert ' + alertClass}"></div>
7071 <div class="g-recaptcha" th:attr="data-sitekey=${@captchaSettings.getKey()}"></div>
71
- <p class="error-message"
72
- th:each="error: ${#fields.errors('reCaptchaResponse')}"
73
- th:text="'Errore validazione reCaptcha'"></p>
7472 </div>
7573 <div class="form-group">
7674 <button name="Invia richiesta" type="submit" th:text="'Invia richiesta'"></button>