[Pmwiki-users] New version no upload directives available for testing here
Christian Ridderström
chr
Fri Jan 30 10:05:40 CST 2004
On Fri, 30 Jan 2004, Patrick R. Michaud wrote:
> On Fri, Jan 30, 2004 at 12:11:55PM +0100, Christian Ridderstr?m wrote:
> > http://www.lyx.org/~chr/demo/uploads/Upload/upload.php.txt
>
> Well, the problem I've had in the past hasn't been with the PHP patterns,
> but in getting non-ASCII characters in URIs to work with various browsers
> (specifically, Internet Explorer). So, I can create a URI with ISO-8859-1
> characters okay, but then some browsers seem to munge the character
> encodings somehow when they're in URIs so they don't come back the same
> way they were sent.
Well, I (shudder) tested this using IE and it didn't work. Some
experimenting indicated that it's because IE doesn't recognize %2F as '/'.
Then I encapsulated the call to urlencode() within a new function that I
called uriEncodeWoSlash() that just calls urlencode() and then replaces
all '%2F' with '/'.
Now the links on this page
http://www.lyx.org/~chr/demo/pmwiki.php?pagename=Upload.NonEnglishCharacters
worked in IE at least.
/Christian
>
> For example, on the www.lyx.org site I went to
> http://www.lyx.org/~chr/demo/pmwiki.php?pagename=Upload.NonEnglishCharacters
> and the links for Attach:?.txt and Attach:?/aFile.txt don't work with
> Internet Explorer. I get URIs that read
> http://www.lyx.org/~chr/demo/uploads/Upload%2F%E5.txt
> and http://www.lyx.org/~chr/demo/uploads/Upload%2F%E5%2FaFile.txt
>
> both of which return 404 Not Found errors from apache.
>
> (Just to pre-empt an answer: yes, I know it looks like one could
> simply replace the %2F and %E5 with their ASCII equivalents, but
> 1. This doesn't answer *why* it's occurring
> 2. One would think that Apache would do the conversion, but it doesn't,
> which indicates that there's something else going on here
> 3. In some previous tests I did with this, the non-ASCII characters
> that IE sent weren't as obvious as the %2F%E5%2F listed above...
> )
IE sucks...
/Christian
--
http://www.md.kth.se/~chr
More information about the pmwiki-users
mailing list