We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 89ba6fd commit 92012b9Copy full SHA for 92012b9
admin/modules/config/settings.php
@@ -293,8 +293,8 @@
293
}
294
295
// do some type filtering
296
- $mybb->input['type'] = str_replace("\n", "", $mybb->input['type']);
297
- if(strtolower(substr($mybb->input['type'], 0, 3)) == "php")
+ $mybb->input['type'] = $mybb->get_input('type');
+ if(!ctype_alnum($mybb->input['type']) || strtolower($mybb->input['type']) == "php")
298
{
299
$mybb->input['type'] = "";
300
@@ -496,8 +496,8 @@
496
497
498
499
500
501
502
503
0 commit comments