diff options
Diffstat (limited to 'classes/pref_prefs.php')
-rw-r--r-- | classes/pref_prefs.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/classes/pref_prefs.php b/classes/pref_prefs.php index 5a216d2b1..03e39caa5 100644 --- a/classes/pref_prefs.php +++ b/classes/pref_prefs.php @@ -1,6 +1,12 @@ <?php class Pref_Prefs extends Protected_Handler { + function csrf_ignore($method) { + $csrf_ignored = array("index"); + + return array_search($method, $csrf_ignored) !== false; + } + function changepassword() { $old_pw = $_POST["old_password"]; |