Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Sympa
Commits
92bafad4
Commit
92bafad4
authored
Feb 05, 2021
by
IKEDA Soji
Browse files
Add autocomplete="off" to all forms unless explicitly enabled.
However, this cannot prevent heuristics by Google Chrome.
parent
90b6c391
Changes
3
Hide whitespace changes
Inline
Side-by-side
default/web_tt2/login.tt2
View file @
92bafad4
...
...
@@ -63,7 +63,7 @@
[% END ~%]
[% IF use_passwd ~%]
<form action="[% path_cgi %]" method="post">
<form action="[% path_cgi %]" method="post"
autocomplete="on"
>
<fieldset>
<input type="hidden" name="previous_action" value="[% previous_action %]" />
<input type="hidden" name="previous_list" value="[% previous_list %]" />
...
...
default/web_tt2/renewpasswd.tt2
View file @
92bafad4
...
...
@@ -42,7 +42,7 @@
[% END %]
[% END %]
[% IF SAFE_TO_REVEAL_EMAIL %]
<form class="bold_label" action="[% path_cgi %]" method="post">
<form class="bold_label" action="[% path_cgi %]" method="post"
autocomplete="on"
>
<fieldset>
<input type="hidden" name="previous_action" value="[% previous_action %]" />
<input type="hidden" name="previous_list" value="[% previous_list %]" />
...
...
src/cgi/wwsympa.fcgi.in
View file @
92bafad4
...
...
@@ -2476,6 +2476,16 @@ sub send_html {
$beg . $content . $end;
}egisx;
}
# Add autocomplete="off" to all forms unless explicitly enabled.
$output =~ s{
<form ( \s+ [^>]*? /? ) >
}{
my $attrs = $1;
$attrs =~ s/(\s*\/?)\z/ autocomplete="off"$1/
unless $attrs =~ /\sautocomplete="[^"]*"/i;
"<form$attrs>";
}egisx;
print $output;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment