https://bugzilla.wikimedia.org/show_bug.cgi?id=24898

[email protected] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]
           Platform|All                         |Other
            Version|unspecified                 |1.17.0
         OS/Version|All                         |other

--- Comment #2 from [email protected] 2011-09-08 14:54:33 UTC ---
I have problem with this function. My apache config not contains for every
virtual host a line like this:
   SetEnv TMP /home/www/example.com/tmp/

And i have situation when:
getenv( $var ) - return empty (define('TMP', "/home/user/mod-tmp/") not workin)
sys_get_temp_dir() - return /tmp (not workin because open_basedir /home/user)

Error:

Warning:  tempnam() [function.tempnam]: open_basedir restriction in effect.
File(/tmp) is not within the allowed path(s): (/home/user:.) in
/home/user/www/site.com/includes/upload/UploadFromUrl.php on line 98

I add to LocalSettings.php line:

   $wgTmpDirectory     = "/home/user/mod-tmp/";

but in this function, this variable is not taken into account

MediaWiki version 1.17.0
PHP 5.2.10

In MediaWiki version 1.16.5 we have

   $localFile = tempnam( $wgTmpDirectory, 'WEBUPLOAD' );

and it works.


(Google Translate)

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to