#39554 [Opn->WFx]: filter callback
| From: | derick@php.net | Date: | Sun, 19 Nov 2006 17:05:20 +0000 |
| Subject: | #39554 [Opn->WFx]: filter callback | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-105188@lists.php.net to get a copy of this message | ||
ID: 39554
Updated by: derick@php.net
Reported By: xmlich02 at stud dot fit dot vutbr dot cz
-Status: Open
+Status: Wont fix
Bug Type: Feature/Change Request
Operating System: any
PHP Version: 5.2.0
New Comment:
No, we can't do this as this would allow everybody to break out of
safemode.
Previous Comments:
------------------------------------------------------------------------
[2006-11-19 10:15:56] xmlich02 at stud dot fit dot vutbr dot cz
Description:
------------
it is possible to add into php any callback function which handles
spam?
Reproduce code:
---------------
var_dump(filter_var($_REQUEST['message'], FILTER_CALLBACK,
'antispam'));
function antismap($message) {
return exec('spamassasin $message');
}
// i can't use exec because of safe mode.
// so it whould be nice to have any
// option to embeded antispam function
Expected result:
----------------
set_ini (antispam, '/usr/bin/spamassasin');
var_dump(filter_var($_REQUEST['message'], FILTER_ANTISPAM));
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=39554&edit=1