note 92420 added to function.escapeshellarg

From: Date: Thu, 23 Jul 2009 17:34:08 +0000
Subject: note 92420 added to function.escapeshellarg
Groups: php.notes 
Request: Send a blank email to php-notes+get-158648@lists.php.net to get a copy of this message
A warning on how this handles single quotes in a string Example: print escapeshellarg(" single quote'd "); Expected: ' single quote\'d ' Actual Result: ' single quote'\''d ' So if you pass a ' into this function, it will return an incorrectly escaped string!!!! ---- Server IP: 69.147.83.197 Probable Submitter: 63.217.142.210 ---- Manual Page -- http://www.php.net/manual/en/function.escapeshellarg.php Edit -- https://master.php.net/note/edit/92420 Del: integrated -- https://master.php.net/note/delete/92420/integrated Del: useless -- https://master.php.net/note/delete/92420/useless Del: bad code -- https://master.php.net/note/delete/92420/bad+code Del: spam -- https://master.php.net/note/delete/92420/spam Del: non-english -- https://master.php.net/note/delete/92420/non-english Del: in docs -- https://master.php.net/note/delete/92420/in+docs Del: other reasons-- https://master.php.net/note/delete/92420 Reject -- https://master.php.net/note/reject/92420 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#158648) next »