Thanks very much for that. As PmWiki generates the URLs should it not escape the characters as part of the generation?
regards Simon On 23 May 2012 00:41, Patrick R. Michaud <pmich...@pobox.com> wrote: > On Tue, May 22, 2012 at 09:51:17PM +1200, Simon wrote: > > I have > > > > *$UploadNameChars = "-\w. !=+#";** # allow exclamations, equals, plus, > and > > hash* > > > > This means I can successfully upload files such as > > http://kiwiwiki.co.nz/pmwiki/pmwiki.php/Test/UploadNameChars?upname=* > > File#1.txt*&action=upload > > [...] > > However when I try to download the file > > > http://kiwiwiki.co.nz/pmwiki/pmwiki.php/Test/UploadNameChars?action=download&upname= > > *File#1.tx*t > > Note that '#' has to be escaped in URLs, otherwise it's taken as an anchor > marker by the browser and stripped before it's sent to PmWiki. In other > words, the urls need to be > > > http://kiwiwiki.co.nz/pmwiki/pmwiki.php/Test/UploadNameChars?upname=*File%231.txt*&action=upload > > and > > > http://kiwiwiki.co.nz/pmwiki/pmwiki.php/Test/UploadNameChars?action=download&upname=*File%231.txt* > > The same thing is true for many of the other characters you're allowing; > be sure they're properly encoded in urls. > > Pm > -- ____ http://kiwiwiki.co.nz
_______________________________________________ pmwiki-devel mailing list pmwiki-devel@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-devel