commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Damien Dallimore (JIRA)" <j...@apache.org>
Subject [jira] Created: (CONFIGURATION-408) When I save a URL as a property value, the forward slashes are getting escaped
Date Thu, 11 Feb 2010 01:02:29 GMT
When I save a URL as a property value, the forward slashes are getting escaped
------------------------------------------------------------------------------

                 Key: CONFIGURATION-408
                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-408
             Project: Commons Configuration
          Issue Type: Bug
          Components: Build
    Affects Versions: 1.6
         Environment: windows xp sp 3 , java 1.6
            Reporter: Damien Dallimore
            Priority: Blocker


When I save a URL as a property value, the forward slashes are getting escaped.

ie: 

foo = http:\/\/www.google.com\/


Example Code : 

public static void main(String[] args)
  {
    try
    {
      PropertiesConfiguration config = new PropertiesConfiguration();     
      File newProps = new File("foo.properties");
      config.setProperty("foo", "http://www.google.com/");     
      config.save(newProps);
      
    }
    catch (Exception e){}

  }

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


Mime
View raw message