From e920fe34ef16d30af0f4fb8e33b565e572ab30c8 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 5 Nov 2010 19:05:02 +0000 Subject: - Patch #575280 by mfb, carlos8f, chx, bleen18: impersonation when an https session exists. --- modules/system/system.install | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'modules/system/system.install') diff --git a/modules/system/system.install b/modules/system/system.install index ca98e390b..f56ef4055 100644 --- a/modules/system/system.install +++ b/modules/system/system.install @@ -1469,14 +1469,13 @@ function system_schema() { 'not null' => TRUE, ), 'sid' => array( - 'description' => "A session ID. The value is generated by PHP's Session API.", + 'description' => "A session ID. The value is generated by Drupal's session handlers.", 'type' => 'varchar', 'length' => 128, 'not null' => TRUE, - 'default' => '', ), 'ssid' => array( - 'description' => "Secure session ID. The value is generated by PHP's Session API.", + 'description' => "Secure session ID. The value is generated by Drupal's session handlers.", 'type' => 'varchar', 'length' => 128, 'not null' => TRUE, @@ -2901,6 +2900,19 @@ function system_update_7064() { db_drop_field('menu_router', 'block_callback'); } +/** + * Remove the default value for sid. + */ +function system_update_7065() { + $spec = array( + 'description' => "A session ID. The value is generated by Drupal's session handlers.", + 'type' => 'varchar', + 'length' => 128, + 'not null' => TRUE, + ); + db_change_field('sessions', 'sid', 'sid', $spec); +} + /** * @} End of "defgroup updates-6.x-to-7.x" * The next series of updates should start at 8000. -- cgit v1.2.3