diff options
author | Igor Wiedler <igor@wiedler.ch> | 2010-10-29 13:29:00 +0200 |
---|---|---|
committer | Oleg Pudeyev <oleg@bsdpower.com> | 2011-02-12 22:05:52 -0500 |
commit | e48b850ab5dfed646e91d87f0dd9c560e7fd76cf (patch) | |
tree | 0abcb0316933d37eb0e05b1c8b7d9bae9d9e1e40 /phpBB/includes/cron/task/parametrized.php | |
parent | 5a95340ee89515aaddd0dd3d3b5cfc2e666d33b2 (diff) | |
download | forums-e48b850ab5dfed646e91d87f0dd9c560e7fd76cf.tar forums-e48b850ab5dfed646e91d87f0dd9c560e7fd76cf.tar.gz forums-e48b850ab5dfed646e91d87f0dd9c560e7fd76cf.tar.bz2 forums-e48b850ab5dfed646e91d87f0dd9c560e7fd76cf.tar.xz forums-e48b850ab5dfed646e91d87f0dd9c560e7fd76cf.zip |
[feature/system-cron] use phpbb_request instead of plain superglobals
PHPBB3-9596
Diffstat (limited to 'phpBB/includes/cron/task/parametrized.php')
-rw-r--r-- | phpBB/includes/cron/task/parametrized.php | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/phpBB/includes/cron/task/parametrized.php b/phpBB/includes/cron/task/parametrized.php index d505cc3328..a9481250e1 100644 --- a/phpBB/includes/cron/task/parametrized.php +++ b/phpBB/includes/cron/task/parametrized.php @@ -37,13 +37,11 @@ interface phpbb_cron_task_parametrized extends phpbb_cron_task public function get_parameters(); /** - * Parses parameters found in $params, which is an array. + * Parses parameters found in $request, which is an instance of + * phpbb_request_interface. * - * $params contains user input and must not be trusted. - * In normal operation $params contains the same data that was returned by - * get_parameters method. However, a malicious user can supply arbitrary - * data in $params. - * Cron task must validate all keys and values in $params before using them. + * $request contains user input and must not be trusted. + * Cron task must validate all data before using it. */ - public function parse_parameters($params); + public function parse_parameters(phpbb_request_interface $request); }
\ No newline at end of file |