Commit 134337 by dries

- Patch #265899 by mfb: uri_brief mail token did not support https URLs.

--- modules/user/user.module	2008/08/14 19:37:22	1.915
+++ modules/user/user.module	2008/08/17 10:46:30	1.916
@@ -2036,7 +2036,7 @@
     '!site' => variable_get('site_name', 'Drupal'),
     '!login_url' => user_pass_reset_url($account),
     '!uri' => $base_url,
-    '!uri_brief' => substr($base_url, strlen('http://')),
+    '!uri_brief' => preg_replace('!^https?://!', '', $base_url),
     '!mailto' => $account->mail,
     '!date' => format_date(time(), 'medium', '', NULL, $language->language),
     '!login_uri' => url('user', array('absolute' => TRUE, 'language' => $language)),
No votes yet