From 02bcfe63c023855ee77f62a4882fb029fb470c5f Mon Sep 17 00:00:00 2001 From: Ihor Date: Fri, 31 Dec 2021 21:31:39 +0200 Subject: [PATCH] Update bypass-csrf-token.php Optionally! --- bypass-csrf-token.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bypass-csrf-token.php b/bypass-csrf-token.php index 38a603e..0b4ea76 100644 --- a/bypass-csrf-token.php +++ b/bypass-csrf-token.php @@ -33,7 +33,7 @@ for ($i = 0; $i < $tokens->length; $i++) { $meta = $tokens->item($i); - if($meta->getAttribute('name') == 'csrfmiddlewaretoken') + if($meta->getAttribute('name') == $csrf_token_field_name) $t = $meta->getAttribute('value'); } if($t) { @@ -88,4 +88,4 @@ curl_close($ch); } -?> \ No newline at end of file +?>