From b834666edad2641e5a1b932ce699d3061b34c506 Mon Sep 17 00:00:00 2001 From: Matthias Pfefferle Date: Thu, 1 Jun 2023 10:44:05 +0200 Subject: [PATCH] add missing slash --- includes/class-signature.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/class-signature.php b/includes/class-signature.php index 0b5f681..06ea766 100644 --- a/includes/class-signature.php +++ b/includes/class-signature.php @@ -166,7 +166,7 @@ class Signature { public static function verify_http_signature( $request ) { if ( is_object( $request ) ) { // REST Request object // check if route starts with "index.php" - if ( str_starts_with( $request->get_route(), 'index.php' ) ) { + if ( str_starts_with( $request->get_route(), '/index.php' ) ) { $route = $request->get_route(); } else { $route = '/' . rest_get_url_prefix() . '/' . ltrim( $request->get_route(), '/' );