note 88011 added to function.preg-replace

From: Date: Tue, 06 Jan 2009 06:25:07 +0000
Subject: note 88011 added to function.preg-replace
Groups: php.notes 
Request: Send a blank email to php-notes+get-148875@lists.php.net to get a copy of this message
Cleanning strings of possible attacks: $s = "./../../../../../.././../../{command}"; $s = "./....//....//....//....//....//....//....//{command}"; $s = "\../../\\\.....\\\///////............/...\/../.././../../{command}"; echo preg_replace ("/\.*[(\/|\\\)]/", "", $s ); output: {command} enjoys :-) ---- Server IP: 69.147.83.197 Probable Submitter: 200.118.220.79 ---- Manual Page -- http://www.php.net/manual/en/function.preg-replace.php Edit -- https://master.php.net/note/edit/88011 Del: integrated -- https://master.php.net/note/delete/88011/integrated Del: useless -- https://master.php.net/note/delete/88011/useless Del: bad code -- https://master.php.net/note/delete/88011/bad+code Del: spam -- https://master.php.net/note/delete/88011/spam Del: non-english -- https://master.php.net/note/delete/88011/non-english Del: in docs -- https://master.php.net/note/delete/88011/in+docs Del: other reasons-- https://master.php.net/note/delete/88011 Reject -- https://master.php.net/note/reject/88011 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#148875) next »