svn commit: r1859295 - /ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/html/CustomPermissivePolicy.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1859295 - /ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/html/CustomPermissivePolicy.java

jleroux@apache.org
Author: jleroux
Date: Wed May 15 15:39:03 2019
New Revision: 1859295

URL: http://svn.apache.org/viewvc?rev=1859295&view=rev
Log:
Improved: no functional change, only formatting

While working on OFBIZ-5254 after reopening it.

Uses the max width (120) makes things easier to read IMO

Modified:
    ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/html/CustomPermissivePolicy.java

Modified: ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/html/CustomPermissivePolicy.java
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/html/CustomPermissivePolicy.java?rev=1859295&r1=1859294&r2=1859295&view=diff
==============================================================================
--- ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/html/CustomPermissivePolicy.java (original)
+++ ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/html/CustomPermissivePolicy.java Wed May 15 15:39:03 2019
@@ -96,8 +96,7 @@ public class CustomPermissivePolicy impl
             .allowAttributes("nohref").onElements("a")
             .allowAttributes("target").matching(NAME).onElements("a")
             .allowAttributes("name").matching(NAME).onElements("a")
-            .allowAttributes(
-                    "onfocus", "onblur", "onclick", "onmousedown", "onmouseup")
+            .allowAttributes("onfocus", "onblur", "onclick", "onmousedown", "onmouseup")
             .matching(HISTORY_BACK).onElements("a")
             .requireRelNofollowOnLinks()
             .allowAttributes("src").matching(ONSITE_OR_OFFSITE_URL)
@@ -130,17 +129,13 @@ public class CustomPermissivePolicy impl
             .allowAttributes("height", "width").matching(NUMBER_OR_PERCENT)
             .onElements("table", "td", "th", "tr", "img")
             .allowAttributes("align").matching(ALIGN)
-            .onElements("thead", "tbody", "tfoot", "img",
-                    "td", "th", "tr", "colgroup", "col")
+            .onElements("thead", "tbody", "tfoot", "img", "td", "th", "tr", "colgroup", "col")
             .allowAttributes("valign").matching(VALIGN)
-            .onElements("thead", "tbody", "tfoot",
-                    "td", "th", "tr", "colgroup", "col")
+            .onElements("thead", "tbody", "tfoot", "td", "th", "tr", "colgroup", "col")
             .allowAttributes("charoff").matching(NUMBER_OR_PERCENT)
-            .onElements("td", "th", "tr", "colgroup", "col",
-                    "thead", "tbody", "tfoot")
+            .onElements("td", "th", "tr", "colgroup", "col","thead", "tbody", "tfoot")
             .allowAttributes("char").matching(ONE_CHAR)
-            .onElements("td", "th", "tr", "colgroup", "col",
-                    "thead", "tbody", "tfoot")
+            .onElements("td", "th", "tr", "colgroup", "col", "thead", "tbody", "tfoot")
             .allowAttributes("colspan", "rowspan").matching(NUMBER)
             .onElements("td", "th")
             .allowAttributes("span", "width").matching(NUMBER_OR_PERCENT)