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 +?>