function assert_request_vars in Lingotek Translation 7.4
Same name and namespace in other branches
- 7.7 lib/oauth-php/example/server/core/init.php \assert_request_vars()
- 7.2 lib/oauth-php/example/server/core/init.php \assert_request_vars()
- 7.3 lib/oauth-php/example/server/core/init.php \assert_request_vars()
- 7.5 lib/oauth-php/example/server/core/init.php \assert_request_vars()
- 7.6 lib/oauth-php/example/server/core/init.php \assert_request_vars()
File
- lib/
oauth-php/ example/ server/ core/ init.php, line 99
Code
function assert_request_vars() {
foreach (func_get_args() as $a) {
if (!isset($_REQUEST[$a])) {
header('HTTP/1.1 400 Bad Request');
echo 'Bad request.';
exit;
}
}
}