Преглед изворни кода

decode reportName in preprint

sunyj пре 7 година
родитељ
комит
011bb65376
1 измењених фајлова са 3 додато и 0 уклоњено
  1. 3 0
      report/src/main/java/com/uas/report/controller/PrintController.java

+ 3 - 0
report/src/main/java/com/uas/report/controller/PrintController.java

@@ -86,6 +86,9 @@ public class PrintController {
     public void preprint(String userName, String profile, String reportName, String whereCondition, String otherParameters,
                          String printType, String title, HttpServletRequest request, HttpServletResponse response)
             throws JRException, IOException, DocumentException, SQLException, ServletException {
+        if(!StringUtils.isEmpty(reportName)){
+            reportName = URLDecoder.decode(reportName, "UTF-8");
+        }
         if(!StringUtils.isEmpty(whereCondition)){
             whereCondition = URLDecoder.decode(whereCondition, "UTF-8");
         }