Author: shinsuke
Date: Sun Nov  6 14:09:47 2005
New Revision: 331155

URL: http://svn.apache.org/viewcvs?rev=331155&view=rev
Log:
submitted by Thorsten Berger. http://issues.apache.org/jira/browse/JS2-381

Modified:
    
portals/jetspeed-2/trunk/components/header-resource/src/java/org/apache/jetspeed/headerresource/impl/HeaderResourceImpl.java

Modified: 
portals/jetspeed-2/trunk/components/header-resource/src/java/org/apache/jetspeed/headerresource/impl/HeaderResourceImpl.java
URL: 
http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/components/header-resource/src/java/org/apache/jetspeed/headerresource/impl/HeaderResourceImpl.java?rev=331155&r1=331154&r2=331155&view=diff
==============================================================================
--- 
portals/jetspeed-2/trunk/components/header-resource/src/java/org/apache/jetspeed/headerresource/impl/HeaderResourceImpl.java
 (original)
+++ 
portals/jetspeed-2/trunk/components/header-resource/src/java/org/apache/jetspeed/headerresource/impl/HeaderResourceImpl.java
 Sun Nov  6 14:09:47 2005
@@ -123,7 +123,7 @@
     public void addJavaScript(String path, boolean defer)
     {
         HashMap attrs = new HashMap();
-        attrs.put("src", path);
+        attrs.put("src", requestContext.getResponse().encodeURL( path ) );
         attrs.put("type", "text/javascript");
         if (defer)
         {
@@ -151,7 +151,7 @@
     {
         HashMap attrs = new HashMap();
         attrs.put("rel", "stylesheet");
-        attrs.put("href", path);
+        attrs.put("href", requestContext.getResponse().encodeURL( path ) );
         attrs.put("type", "text/css");
         addHeaderInfo("link", attrs, null);
     }



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to