summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2010-01-24 15:49:02 -0800
committerTim Almdal <tnalmdal@shaw.ca>2010-01-24 15:49:02 -0800
commit26eb000637fb83c04919e1e18c67b1441db76da6 (patch)
tree5bdc8ae5968a861bae10abdf58354a3be9fac984
parentc9ea1a64de16af16180c106a3012919150d3cf60 (diff)
add CSRF protection to the user profile send method.
-rw-r--r--modules/gallery/controllers/user_profile.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gallery/controllers/user_profile.php b/modules/gallery/controllers/user_profile.php
index 6159894d..3a7e0200 100644
--- a/modules/gallery/controllers/user_profile.php
+++ b/modules/gallery/controllers/user_profile.php
@@ -51,6 +51,7 @@ class User_Profile_Controller extends Controller {
}
public function send($id) {
+ access::verify_csrf();
$user = identity::lookup_user($id);
$form = user_profile::get_contact_form($user);
if ($form->validate()) {