From:             php-bug at angehrn dot com
Operating system: Linux
PHP version:      4.3.9
PHP Bug Type:     Unknown/Other Function
Bug description:  wrong behaviour with escaped commands in safemode

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 bug report at http://bugs.php.net/?id=30404&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=30404&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30404&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30404&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=30404&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=30404&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=30404&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=30404&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=30404&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=30404&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=30404&r=notwrong
Not enough info:             http://bugs.php.net/fix.php?id=30404&r=notenoughinfo
Submitted twice:             http://bugs.php.net/fix.php?id=30404&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=30404&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=30404&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=30404&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=30404&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=30404&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=30404&r=float
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=30404&r=mysqlcfg

Reply via email to