Made commentor URLs add http:// if missing
This commit is contained in:
parent
741994a06b
commit
d11eae57cd
@ -1,3 +1,5 @@
|
||||
- Made commentor URLs add http:// if missing
|
||||
|
||||
20070723 Version 1.60:
|
||||
----------------------
|
||||
(By kalkin)
|
||||
|
@ -14,7 +14,7 @@ class serendipity_event_statistics extends serendipity_event
|
||||
$propbag->add('description', PLUGIN_EVENT_STATISTICS_DESC);
|
||||
$propbag->add('stackable', false);
|
||||
$propbag->add('author', 'Arnan de Gans, Garvin Hicking, Fredrik Sandberg, kalkin');
|
||||
$propbag->add('version', '1.49');
|
||||
$propbag->add('version', '1.50');
|
||||
$propbag->add('requirements', array(
|
||||
'serendipity' => '0.8',
|
||||
'smarty' => '2.6.7',
|
||||
@ -403,6 +403,11 @@ class serendipity_event_statistics extends serendipity_event
|
||||
}
|
||||
|
||||
if (!empty($com_stat['url'])) {
|
||||
if (substr($com_stat['url'], 0, 7) != 'http://' && substr($com_stat['url'], 0, 8) != 'https://') {
|
||||
$com_stat['url'] = 'http://' . $com_stat['url'];
|
||||
}
|
||||
|
||||
if (!preg_match())
|
||||
$link_url = ' (<a href="' . htmlspecialchars($com_stat['url']) . '">' . PLUGIN_EVENT_STATISTICS_OUT_LINK . '</a>)';
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user