#30404 [Opn->Fbk]: wrong behaviour with escaped commands in safemode
ID: 30404
Updated by: tony2001@php.net
Reported By: php-bug at angehrn dot com
-Status: Open
+Status: Feedback
Bug Type: Unknown/Other Function
Operating System: Linux
PHP Version: 4.3.9
New Comment:
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php
If you can provide more information, feel free to add it
to this bug and change the status back to "Open".
Thank you for your interest in PHP.
How exactly does it fail?
Previous Comments:
------------------------------------------------------------------------
[2004-10-11 22:59:17] php-bug at angehrn dot com
Description:
------------
if safe_mode is on, i cannot use a command with backslash escaped
commands in exec()
Reproduce code:
---------------
safe_mode off
exec('convert logo: "test 1.jpg"'); - works
exec('convert logo: test\ 1.jpg'); - works
safe_mode on
exec('convert logo: "test 1.jpg"'); - works
exec('convert logo: test\ 1.jpg'); - fails
Expected result:
----------------
it should work like the command with safemode off
Actual result:
--------------
it fails...
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=30404&edit=1
Thread (4 messages)