diff options
author | jim-p <jimp@pfsense.org> | 2012-05-30 09:15:00 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2012-05-30 09:19:03 -0400 |
commit | fec04267ea5303333839a45149e3cc2edc8250ff (patch) | |
tree | 7210997f08deb3c6b2ba6464b87f2601d79ab74a /usr/local/www | |
parent | b011547764e845a49e9a3c4d2202a09b2234ce1f (diff) | |
download | pfsense-fec04267ea5303333839a45149e3cc2edc8250ff.zip pfsense-fec04267ea5303333839a45149e3cc2edc8250ff.tar.gz |
Disable autocomplete on all but the login form. Fixes #2459
Diffstat (limited to 'usr/local/www')
-rwxr-xr-x | usr/local/www/fend.inc | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/usr/local/www/fend.inc b/usr/local/www/fend.inc index dc4dc5b..2fb8010 100755 --- a/usr/local/www/fend.inc +++ b/usr/local/www/fend.inc @@ -14,5 +14,12 @@ </div> <!-- Wrapper Div --> -<?php outputJavaScriptFileInline("/usr/local/www/themes/{$g['theme']}/bottom-loader.js"); ?> - +<?php outputJavaScriptFileInline("/usr/local/www/themes/{$g['theme']}/bottom-loader.js"); +/* Disable form autocomplete on all but the login screen. */ +if (basename($_SERVER["SCRIPT_FILENAME"] != "login.php")): ?> +<script type="text/javascript"> +(function ($) { + $("input").attr("autocomplete","off"); +})(jQuery); +</script> +<?php endif; ?>
\ No newline at end of file |