From 23582a5e9101a369474016e43bbb904c47a47df5 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 10 Jun 2010 06:57:20 +0000 Subject: - Patch #520760 by sun, Berdir, Steven Merrill, David_Rothstein, Heine, duellj, catch: fixed SA-CORE-2009-007 user signature format. --- modules/user/user.install | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'modules/user/user.install') diff --git a/modules/user/user.install b/modules/user/user.install index 6cc5d144d..0bff646bb 100644 --- a/modules/user/user.install +++ b/modules/user/user.install @@ -160,6 +160,13 @@ function user_schema() { 'default' => '', 'description' => "User's signature.", ), + 'signature_format' => array( + 'type' => 'int', + 'size' => 'small', + 'not null' => TRUE, + 'default' => 0, + 'description' => 'The {filter_format}.format of the signature.', + ), 'created' => array( 'type' => 'int', 'not null' => TRUE, @@ -228,6 +235,9 @@ function user_schema() { 'name' => array('name'), ), 'primary key' => array('uid'), + 'foreign keys' => array( + 'signature_format' => array('filter_format' => 'format'), + ), ); $schema['users_roles'] = array( -- cgit v1.2.3