From 0abaa6724d6b2e7e3f5a3f8d81026cee9def0b10 Mon Sep 17 00:00:00 2001 From: Friendika Date: Wed, 10 Nov 2010 17:30:14 -0800 Subject: [PATCH] set autocomplete=false to prevent browser prefilling passwd change, set return_url on all contact forms --- mod/contacts.php | 2 +- view/settings.tpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mod/contacts.php b/mod/contacts.php index 02c75c775..f0e677ba5 100644 --- a/mod/contacts.php +++ b/mod/contacts.php @@ -90,6 +90,7 @@ function contacts_content(&$a) { $o = ''; $o .= ''; + $_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'); diff --git a/view/settings.tpl b/view/settings.tpl index 8d0b9dfb9..bf54a54c6 100644 --- a/view/settings.tpl +++ b/view/settings.tpl @@ -3,7 +3,7 @@ $nickname_block -
+

Basic Settings