You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by we...@apache.org on 2009/05/07 15:27:10 UTC

svn commit: r772645 - /myfaces/tobago/branches/tobago-1.0.x/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/MenuBarRenderer.java

Author: weber
Date: Thu May  7 13:27:09 2009
New Revision: 772645

URL: http://svn.apache.org/viewvc?rev=772645&view=rev
Log:
(TOBAGO-639) Optimize layout token parsing
  fix escaping of apostrophe

Modified:
    myfaces/tobago/branches/tobago-1.0.x/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/MenuBarRenderer.java

Modified: myfaces/tobago/branches/tobago-1.0.x/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/MenuBarRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/MenuBarRenderer.java?rev=772645&r1=772644&r2=772645&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/MenuBarRenderer.java (original)
+++ myfaces/tobago/branches/tobago-1.0.x/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/MenuBarRenderer.java Thu May  7 13:27:09 2009
@@ -513,7 +513,7 @@
   }
 
   private String prepareForScript(String s) {
-    return StringUtils.replace(s.replace('\n', ' '), "'", "\\\\'");
+    return StringUtils.replace(s.replace('\n', ' '), "'", "\\'");
   }
 
   public void encodeChildren(FacesContext facesContext, UIComponent component)