Discard invalid characters from directory name generated for staging site
-------------------------------------------------------------------------

                 Key: MSITE-303
                 URL: http://jira.codehaus.org/browse/MSITE-303
             Project: Maven 2.x Site Plugin
          Issue Type: Improvement
    Affects Versions: 2.0-beta-6
            Reporter: Benjamin Bentmann
            Priority: Trivial
         Attachments: filter-invalid-chars.patch

{{site-stage}} takes the distribution URL and builds a filesystem path from it. 
This can potentially lead to invalid paths since URLs may contain characters 
that are not valid for directory names.

It's mostly a theoretical issue since good URLs don't include bad characters. 
The only exploit I can offer is to set the distribution URL to something like 
{{file://G:/Sites/}} on a Windows box which then will cause an invalid file 
name like 
{{G:\Sites\stage\localhost\G:\Sites\multi-module-project\index.html}}. I 
experienced this during some local quick&dirty testing.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to