Skip to content

Commit 5c42bb9

Browse files
committed
fix: fixed default regexp for http csrf token name
1 parent bf644bf commit 5c42bb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plugins/http/options.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ pub(crate) struct Options {
2626
pub http_csrf_page: Option<String>,
2727
#[clap(
2828
long,
29-
default_value = r#"<input type="hidden" name="(token)" value="([^"]+)""#,
29+
default_value = r#"<input type="hidden" name="([^\"]+)" value="([^"]+)""#,
3030
help_heading = "HTTP"
3131
)]
3232
/// Regular expression to use to grab the CSRF token name and value.

0 commit comments

Comments
 (0)