Last modified: 2010-05-15 15:38:32 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 5405 - shell_exec
shell_exec
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
File management (Other open bugs)
1.5.x
PC Linux
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
: 6298 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-03-31 02:53 UTC by Sami Sieranoja
Modified: 2010-05-15 15:38 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Sami Sieranoja 2006-03-31 02:53:30 UTC
includes/Image.php uses the shell_exec -function resize images, which doesn't
work if safe-mode is on. I replaced this with exec, and resizing images started
to work. (convert -command is in safe_mode_exec_dir)
Comment 1 Brion Vibber 2006-03-31 03:14:00 UTC
We've explored this kind of thing before. The problem is just that safe_mode is inherently broken; exec()'s behavior is 
different under safe_mode and becomes very unreliable:

"With safe mode enabled, the command string is escaped with escapeshellcmd(). Thus, echo y | echo x becomes echo y 
\| echo x."

This will of course bork up the properly-escaped shell commands, so various filenames would stop working.

PHP 6 is removing the broken safe_mode option, so keep in mind it's unsupported.
Comment 2 Brion Vibber 2006-06-13 18:52:16 UTC
*** Bug 6298 has been marked as a duplicate of this bug. ***

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links