Mailing List Archive

special page fileUpload doesn`t run
Hello,

if I upload a file the tempfile-name on the answer-page comes wrong

example, wampp2tmpphp3E2A.tmp the "\" are eliminated
the correct path would be "wampp2\tmp\php3....

I run the mediawiki on a windowsXP with apache.

All other things are okay. This is my first and the only error I have with
the wiki.

Thanks for Help

eduard
RE: special page fileUpload doesn`t run [ In reply to ]
Hello,

Try checking the "upload_tmp_dir" setting in your PHP.ini. You should use
either escaped backslashes (\\) or slashes (/)

- Simon


_____

From: mediawiki-l-bounces@Wikimedia.org
[mailto:mediawiki-l-bounces@Wikimedia.org] On Behalf Of Eduard Bauer
Sent: Saturday, May 08, 2004 10:20 PM
To: mediawiki-l@Wikimedia.org
Subject: [Mediawiki-l] special page fileUpload doesn`t run


Hello,

if I upload a file the tempfile-name on the answer-page comes wrong

example, wampp2tmpphp3E2A.tmp the "\" are eliminated
the correct path would be "wampp2\tmp\php3....

I run the mediawiki on a windowsXP with apache.

All other things are okay. This is my first and the only error I have with
the wiki.

Thanks for Help

eduard
Re: special page fileUpload doesn`t run [ In reply to ]
Eduard Bauer wrote:
> if I upload a file the tempfile-name on the answer-page comes wrong
>
> example, wampp2tmpphp3E2A.tmp the "\" are eliminated
> the correct path would be "wampp2\tmp\php3....
>
> I run the mediawiki on a windowsXP with apache.

There's an inconsistency in how PHP does its "magic quotes" mangling on
the upload data, which we had overlooked. It doesn't usually make a
different on Unix but Windows does silly things like using backslash for
a directory separator, which screws everything up when we remove the
"extra" backslashes.

A fix will be in 1.2.6; you can make the change manually in index.php:
https://sourceforge.net/tracker/?func=detail&atid=411192&aid=951541&group_id=34373

-- brion vibber (brion @ pobox.com)