Closed (fixed)
Project:
Short URL
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Feb 2010 at 13:37 UTC
Updated:
30 Jun 2010 at 05:20 UTC
The default value for shorturl_domain is HTTP_HOST
variable_get('shorturl_domain', $_SERVER['HTTP_HOST']);
This actually fails validation if you go to the settings page the first time and just save.
I think it should be changed as below
variable_get('shorturl_domain', 'http://' . $_SERVER['HTTP_HOST']);
in both the settings form and the shorturl_shorten() function.
The patch is from my dev version - which is getting slowly further from the CVS version
| Comment | File | Size | Author |
|---|---|---|---|
| short_url_default_domain.patch | 1.08 KB | seanburlington |
Comments
Comment #1
irakli commentedFixed and committed: http://drupal.org/cvs?commit=380570