Uploaded image for project: 'XWiki MS Office Integration'
  1. XWiki MS Office Integration
  2. XOFFICE-135

Exception "Illegal characters in path" for some external images

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • 1.2 M2
    • 1.0
    • Content Filtering
    • None

    Description

      DownloadImage method from WebImageAdaptorFilter does not escape illegal characters (\/:*?"<>|) from image's URL causing "Illegal characters in path" exception to be thrown. The illegal characters should be replaced with a dash ('-') or underscore('_').
      Example:

      <img src="image.php?id=23" alt="Image 1"/>
      <img src="http://opi.yahoo.com/online?u=USERNAME&m=g&t=1" alt="Yahoo Macro" />
      
      <img src="image.php-id=23" alt="Image 1"/>
      <img src="http---opi.yahoo.com-online-u=USERNAME&m=g&t=1" alt="Yahoo Macro" />
      

      Attachments

        Activity

          People

            florin_c Florin Ciubotaru
            tachirei Teofil Achirei
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: