!uri_brief mail token does not support https URLs

bwellhoefer - July 23, 2008 - 06:46
Project:Drupal
Version:5.8
Component:user system
Category:bug report
Priority:normal
Assigned:Unassigned
Status:duplicate
Description

In D5.8 the !uri_brief token available for user mails incorrectly assumes that $base_url is an http URL; it should support both http and https URLs. This results in a value for !uri_brief like '/www.example.com'.

See http://drupal.org/node/265899 for D6 and D7.

Please replace all

'!uri_brief' => substr($base_url, strlen('http://'))

statements with the

'!uri_brief' => preg_replace('!^https?://!', '', $base_url)

statement.

Thx!

#1

mfb - August 15, 2008 - 10:27
Status:active» duplicate

Duplicate of #265899: !uri_brief mail token does not support https URLs

#2

Dries - August 17, 2008 - 10:51

I've committed this to CVS HEAD and DRUPAL-6. I've also manually back-ported this fix to DRUPAL-5.

 
 

Drupal is a registered trademark of Dries Buytaert.