[pmwiki-devel] $UploadNameChars

Simon nzskiwi at gmail.com
Wed May 23 03:08:19 CDT 2012


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 <pmichaud at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pmichaud.com/pipermail/pmwiki-devel/attachments/20120523/3a588beb/attachment.html>


More information about the pmwiki-devel mailing list