You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2012/07/25 14:13:28 UTC

svn commit: r1365546 - /myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/webapp/TobagoResponseWriter.java

Author: lofwyr
Date: Wed Jul 25 12:13:28 2012
New Revision: 1365546

URL: http://svn.apache.org/viewvc?rev=1365546&view=rev
Log:
TOBAGO-1186: Styles should be escaped, when the contains strings

Modified:
    myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/webapp/TobagoResponseWriter.java

Modified: myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/webapp/TobagoResponseWriter.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/webapp/TobagoResponseWriter.java?rev=1365546&r1=1365545&r2=1365546&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/webapp/TobagoResponseWriter.java (original)
+++ myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/webapp/TobagoResponseWriter.java Wed Jul 25 12:13:28 2012
@@ -171,7 +171,7 @@ public abstract class TobagoResponseWrit
   public void writeStyleAttribute(Style style) throws IOException {
     if (style != null) {
       final String value = style.encode();
-      if (value != null) {
+      if (value.length() > 0) {
         writeAttribute(HtmlAttributes.STYLE, value, style.needsToBeEscaped());
       }
     }