Thanks very much for that.<div>As PmWiki generates the URLs should it not escape the characters as part of the generation?</div><div><br></div><div>regards</div><div><br></div><div>Simon</div><div><br><br><div class="gmail_quote">
On 23 May 2012 00:41, Patrick R. Michaud <span dir="ltr"><<a href="mailto:pmichaud@pobox.com" target="_blank">pmichaud@pobox.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Tue, May 22, 2012 at 09:51:17PM +1200, Simon wrote:<br>
> I have<br>
><br>
> *$UploadNameChars = "-\w. !=+#";** # allow exclamations, equals, plus, and<br>
> hash*<br>
<div class="im">><br>
> This means I can successfully upload files such as<br>
</div>> <a href="http://kiwiwiki.co.nz/pmwiki/pmwiki.php/Test/UploadNameChars?upname=*" target="_blank">http://kiwiwiki.co.nz/pmwiki/pmwiki.php/Test/UploadNameChars?upname=*</a><br>
> File#1.txt*&action=upload<br>
> [...]<br>
<div class="im">> However when I try to download the file<br>
> <a href="http://kiwiwiki.co.nz/pmwiki/pmwiki.php/Test/UploadNameChars?action=download&upname=" target="_blank">http://kiwiwiki.co.nz/pmwiki/pmwiki.php/Test/UploadNameChars?action=download&upname=</a><br>
</div>> *File#1.tx*t<br>
<br>
Note that '#' has to be escaped in URLs, otherwise it's taken as an anchor<br>
marker by the browser and stripped before it's sent to PmWiki.  In other<br>
words, the urls need to be<br>
<br>
<a href="http://kiwiwiki.co.nz/pmwiki/pmwiki.php/Test/UploadNameChars?upname=*File%231.txt*&action=upload" target="_blank">http://kiwiwiki.co.nz/pmwiki/pmwiki.php/Test/UploadNameChars?upname=*File%231.txt*&action=upload</a><br>

<br>
and<br>
<br>
<a href="http://kiwiwiki.co.nz/pmwiki/pmwiki.php/Test/UploadNameChars?action=download&upname=*File%231.txt*" target="_blank">http://kiwiwiki.co.nz/pmwiki/pmwiki.php/Test/UploadNameChars?action=download&upname=*File%231.txt*</a><br>

<br>
The same thing is true for many of the other characters you're allowing;<br>
be sure they're properly encoded in urls.<br>
<span class="HOEnZb"><font color="#888888"><br>
Pm<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>____<br><a href="http://kiwiwiki.co.nz">http://kiwiwiki.co.nz</a><br>
</div>