Brilliant. Installed the fixed upload.php (currently running against
<a href="http://kiwiwiki.co.nz/pmwiki/pmwiki.php/Test/UploadNameChars">http://kiwiwiki.co.nz/pmwiki/pmwiki.php/Test/UploadNameChars</a> ) and everything works just how it should.<div><br></div><div>thank you very much</div>
<div><br></div><div>Simon</div><div><br><br><div class="gmail_quote">On 24 May 2012 17:43, Petko Yotov <span dir="ltr"><<a href="mailto:5ko@5ko.fr" target="_blank">5ko@5ko.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Wednesday 23 May 2012 20:08:19 Simon wrote:<br>
> As PmWiki generates the URLs should it not escape the characters as part of<br>
> the generation?<br>
<br>
</div>You can get the pre-release from subversion and test it:<br>
<a href="http://www.pmwiki.org/wiki/PmWiki/Subversion" target="_blank">http://www.pmwiki.org/wiki/PmWiki/Subversion</a><br>
<br>
Only scripts/upload.php changed from 2.2.38. Only the (:attachlist:) markup<br>
should be expected to work, other recipes dealing with uploads may use their<br>
own ways.<br>
<br>
However, if you can, I strongly recommend to get rid of the additional<br>
characters in your filenames, because of many potential conflicts. See<br>
<a href="http://www.pmwiki.org/wiki/PmWiki/UploadVariables#UploadNameChars" target="_blank">http://www.pmwiki.org/wiki/PmWiki/UploadVariables#UploadNameChars</a><br>
<br>
Unfortunately I don't have enough resources to fix unsupported stuff when,<br>
not if, something else breaks because of the unsupported filenames. (The<br>
additional characters, even if they appear to work now, are still not<br>
recommended.)<br>
<br>
Petko<br>
<div><div class="h5"><br>
> On 23 May 2012 00:41, Patrick R. Michaud <<a href="mailto:pmichaud@pobox.com">pmichaud@pobox.com</a>> wrote:<br>
> > On Tue, May 22, 2012 at 09:51:17PM +1200, Simon wrote:<br>
> > > I have<br>
> > ><br>
> > > *$UploadNameChars = "-\w. !=+#";** # allow exclamations, equals,<br>
> > > plus,<br>
> ><br>
> > and<br>
> ><br>
> > > hash*<br>
> > ><br>
> > > This means I can successfully upload files such as<br>
> > > <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>
> > > *<br>
> > > File#1.txt*&action=upload<br>
> > > [...]<br>
> > > However when I try to download the file<br>
> ><br>
> > <a href="http://kiwiwiki.co.nz/pmwiki/pmwiki.php/Test/UploadNameChars?action=down" target="_blank">http://kiwiwiki.co.nz/pmwiki/pmwiki.php/Test/UploadNameChars?action=down</a><br>
> > load&upname=><br>
> > > *File#1.tx*t<br>
> ><br>
> > Note that '#' has to be escaped in URLs, otherwise it's taken as an<br>
> > anchor marker by the browser and stripped before it's sent to PmWiki.<br>
> > In other words, the urls need to be<br>
> ><br>
> ><br>
> > <a href="http://kiwiwiki.co.nz/pmwiki/pmwiki.php/Test/UploadNameChars?upname=*Fil" target="_blank">http://kiwiwiki.co.nz/pmwiki/pmwiki.php/Test/UploadNameChars?upname=*Fil</a><br>
> > e%231.txt*&action=upload<br>
> ><br>
> > and<br>
> ><br>
> ><br>
> > <a href="http://kiwiwiki.co.nz/pmwiki/pmwiki.php/Test/UploadNameChars?action=down" target="_blank">http://kiwiwiki.co.nz/pmwiki/pmwiki.php/Test/UploadNameChars?action=down</a><br>
> > load&upname=*File%231.txt*<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>
> ><br>
> > Pm<br>
<br>
</div></div>_______________________________________________<br>
pmwiki-devel mailing list<br>
<a href="mailto:pmwiki-devel@pmichaud.com">pmwiki-devel@pmichaud.com</a><br>
<a href="http://www.pmichaud.com/mailman/listinfo/pmwiki-devel" target="_blank">http://www.pmichaud.com/mailman/listinfo/pmwiki-devel</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>____<br><a href="http://kiwiwiki.co.nz">http://kiwiwiki.co.nz</a><br>
</div>