mark: A photo of Mark kneeling on top of the Taal Volcano in the Philippines. It was a long hike. (Default)
Mark Smith ([staff profile] mark) wrote in [site community profile] changelog2011-12-07 09:48 pm

[dw-free] As pointed out by [personal profile] ttuttle, we don't turn off autocomplete

[commit: http://hg.dwscoalition.org/dw-free/rev/141a2c2d6cd3]

As pointed out by [personal profile] ttuttle, we don't turn off autocomplete on
these fields. We should. Even though this is not part of the standards, it's
a good idea to do.

Patch by [staff profile] mark.

Files modified:
  • htdocs/shop/entercc.bml
--------------------------------------------------------------------------------
diff -r 3db64058a3b6 -r 141a2c2d6cd3 htdocs/shop/entercc.bml
--- a/htdocs/shop/entercc.bml	Wed Dec 07 23:21:23 2011 +0800
+++ b/htdocs/shop/entercc.bml	Wed Dec 07 21:51:31 2011 +0000
@@ -100,8 +100,8 @@
             zip => LJ::html_text({ name => 'zip', id => 'zip', maxlength => 20, value => $POST{zip} }),
             phone => LJ::html_text({ name => 'phone', id => 'phone', maxlength => 40, value => $POST{phone} }),
             '--' => '',
-            ccnum => LJ::html_text({ name => 'ccnum', id => 'ccnum', maxlength => 19 }) . $accepted_ccs,
-            cvv2 => LJ::html_text({ name => 'cvv2', id => 'cvv2', maxlength => 4, size => 5 }),
+            ccnum => LJ::html_text({ name => 'ccnum', id => 'ccnum', maxlength => 19, autocomplete => 'off' }) . $accepted_ccs,
+            cvv2 => LJ::html_text({ name => 'cvv2', id => 'cvv2', maxlength => 4, size => 5, autocomplete => 'off' }),
             expmon => LJ::html_select({ name => 'expmon', id => 'expmon', selected => $POST{expmon} }, map { $_ => LJ::Lang::month_long_ml( $_ ) . " - " . sprintf( '%0.2d', $_ ); } 1..12 ),
             expyear => LJ::html_select({ name => 'expyear', id => 'expyear', selected => $POST{expyear} }, map { $_ => $_ } 2011..2020 ),
         );
--------------------------------------------------------------------------------

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org