taylor      2004/06/15 19:32:37

  Modified:    portal/src/java/org/apache/jetspeed/container/url/impl
                        PortalControlParameterImpl.java
  Log:
  encode and decode URLs properly as render params
  Help Mode and Actions (from view mode) are now properly working from the RssPortlet
  
  CVS: ----------------------------------------------------------------------
  CVS: PR:
  CVS:   If this change addresses a PR in the problem report tracking
  CVS:   database, then enter the PR number(s) here.
  CVS: Obtained from:
  CVS:   If this change has been taken from another system, such as NCSA,
  CVS:   then name the system in this line, otherwise delete it.
  CVS: Submitted by:
  CVS:   If this code has been contributed to Apache by someone else; i.e.,
  CVS:   they sent us a patch or a new module, then include their name/email
  CVS:   address here. If this is your work then delete this line.
  CVS: Reviewed by:
  CVS:   If we are doing pre-commit code reviews and someone else has
  CVS:   reviewed your changes, include their name(s) here.
  CVS:   If you have not had it reviewed then delete this line.
  
  Revision  Changes    Path
  1.6       +17 -5     
jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/container/url/impl/PortalControlParameterImpl.java
  
  Index: PortalControlParameterImpl.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/container/url/impl/PortalControlParameterImpl.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- PortalControlParameterImpl.java   15 Jun 2004 04:00:21 -0000      1.5
  +++ PortalControlParameterImpl.java   16 Jun 2004 02:32:37 -0000      1.6
  @@ -315,15 +315,27 @@
   
       private String decodeValue(String value)
       {
  -        value = StringUtils.replace(value, "0x1", "_");
  -        value = StringUtils.replace(value, "0x2", ".");
  +        value = StringUtils.replace(value, "0x1", "_" );
  +        value = StringUtils.replace(value, "0x2", "." );
  +        value = StringUtils.replace(value, "0x3", "/" );
  +        value = StringUtils.replace(value, "0x4", "\r" );
  +        value = StringUtils.replace(value, "0x5", "\n" );
  +        value = StringUtils.replace(value, "0x6", "<" );
  +        value = StringUtils.replace(value, "0x7", ">" );
  +        value = StringUtils.replace(value, "0x8", " " );
           return value;
       }
   
       private String encodeValue(String value)
       {
  -        value = StringUtils.replace(value, "_", "0x1");
  -        value = StringUtils.replace(value, ".", "0x2");
  +        value = StringUtils.replace(value, "_", "0x1" );
  +        value = StringUtils.replace(value, ".", "0x2" );
  +        value = StringUtils.replace(value, "/", "0x3" );
  +        value = StringUtils.replace(value, "\r", "0x4" );
  +        value = StringUtils.replace(value, "\n", "0x5" );
  +        value = StringUtils.replace(value, "<", "0x6" );
  +        value = StringUtils.replace(value, ">", "0x7" );
  +        value = StringUtils.replace(value, " ", "0x8" );        
           return value;
       }
       
  
  
  

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

Reply via email to