]> git.mxchange.org Git - friendica.git/commitdiff
set autocomplete=false to prevent browser prefilling passwd change, set return_url...
authorFriendika <info@friendika.com>
Thu, 11 Nov 2010 01:30:14 +0000 (17:30 -0800)
committerFriendika <info@friendika.com>
Thu, 11 Nov 2010 01:30:14 +0000 (17:30 -0800)
mod/contacts.php
view/settings.tpl

index 02c75c7755c6d9d28942ed420803847f5f12944b..f0e677ba5926a3f805d26bea4ce699a4954c6d63 100644 (file)
@@ -90,6 +90,7 @@ function contacts_content(&$a) {
        $o = '';
        $o .= '<script> $(document).ready(function() { $(\'#nav-contacts-link\').addClass(\'nav-selected\'); });</script>';
 
+       $_SESSION['return_url'] = $a->get_baseurl() . '/' . $a->cmd;
 
        if(! local_user()) {
                notice( t('Permission denied.') . EOL);
@@ -164,7 +165,6 @@ function contacts_content(&$a) {
                        return;
                }
 
-               $_SESSION['return_url'] = $a->get_baseurl() . '/' . $a->cmd;
 
                require_once('view/contact_selectors.php');
 
index 8d0b9dfb9a30d04759b53d207d43a8ae98c7c0fd..bf54a54c6d58ea40fff5152a9dd7c2d0aab13252 100644 (file)
@@ -3,7 +3,7 @@
 $nickname_block
 
 
-<form action="settings" id="settings-form" method="post" >
+<form action="settings" id="settings-form" method="post" autocomplete="false" >
 
 
 <h3 class="settings-heading">Basic Settings</h3>