We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a266415 commit 3e1ba6cCopy full SHA for 3e1ba6c
includes/Core/Util/Route.php
@@ -27,11 +27,12 @@ public static function post($hook, $invokeable)
27
public static function request($method, $hook, $invokeable)
28
{
29
$action = $_REQUEST['action'] ?? $_POST['action'] ?? $_GET['action'];
30
+ $action = sanitize_text_field($action);
31
32
if (
33
(isset($_SERVER['REQUEST_METHOD']) && sanitize_text_field($_SERVER['REQUEST_METHOD']) != $method)
34
|| empty($action)
- || (!empty($action) && strpos(sanitize_text_field($action), $hook) === false)
35
+ || (!empty($action) && strpos($action, $hook) === false)
36
) {
37
if (static::$_no_auth) {
38
static::$_no_auth = false;
0 commit comments