Uploaded image for project: 'Commons Configuration'
  1. Commons Configuration
  2. CONFIGURATION-408

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 1.6
    • 1.7
    • Build
    • None
    • windows xp sp 3 , java 1.6

    Description

      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){}

      }

      Attachments

        Activity

          People

            oheger Oliver Heger
            damiendallimore Damien Dallimore
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: