[ 
https://issues.apache.org/jira/browse/VELOCITY-567?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Alexander Borovsky updated VELOCITY-567:
----------------------------------------

    Attachment: fix.patch

Possible fix attached.

escape function copied from org.apache.commons.collections.ExtendedProperties

> Problems with passing parameters with special symbols (like backslash)
> ----------------------------------------------------------------------
>
>                 Key: VELOCITY-567
>                 URL: https://issues.apache.org/jira/browse/VELOCITY-567
>             Project: Velocity
>          Issue Type: Bug
>          Components: Engine
>    Affects Versions: 1.4
>            Reporter: Alexander Borovsky
>         Attachments: fix.patch
>
>
> When passing path to windows share (in windows) we store double backslashes 
> to properties. But this double backslashes unescaped (by ExtendedPropertySet) 
> and template working not working. 
> I propose escape all passed string values. Fixing clients will require 
> changes in many other projects (f.e. 
> org.springframework.ui.velocity.VelocityEngineFactory).
> This problem also occurs at RuntimeInstance#initializeProperties and 
> RuntimeInstance#setConfiguration and should be fixed according COLLECTIONS-271

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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

Reply via email to