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:17:01 UTC

svn commit: r1365547 - in /myfaces/tobago/branches/tobago-1.5.x: ./ tobago-core/src/main/java/org/apache/myfaces/tobago/webapp/TobagoResponseWriter.java

Author: lofwyr
Date: Wed Jul 25 12:17:01 2012
New Revision: 1365547

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

Modified:
    myfaces/tobago/branches/tobago-1.5.x/   (props changed)
    myfaces/tobago/branches/tobago-1.5.x/tobago-core/src/main/java/org/apache/myfaces/tobago/webapp/TobagoResponseWriter.java

Propchange: myfaces/tobago/branches/tobago-1.5.x/
------------------------------------------------------------------------------
  Merged /myfaces/tobago/trunk:r1365546

Modified: myfaces/tobago/branches/tobago-1.5.x/tobago-core/src/main/java/org/apache/myfaces/tobago/webapp/TobagoResponseWriter.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.5.x/tobago-core/src/main/java/org/apache/myfaces/tobago/webapp/TobagoResponseWriter.java?rev=1365547&r1=1365546&r2=1365547&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.5.x/tobago-core/src/main/java/org/apache/myfaces/tobago/webapp/TobagoResponseWriter.java (original)
+++ myfaces/tobago/branches/tobago-1.5.x/tobago-core/src/main/java/org/apache/myfaces/tobago/webapp/TobagoResponseWriter.java Wed Jul 25 12:17:01 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());
       }
     }