1
0

* Prefix possibly missing http:// of commenting authors URLs

in recent comments sidebar plugin and admin interface.
This commit is contained in:
Garvin Hicking
2008-10-23 13:50:54 +00:00
parent bed9db637b
commit 7300925ce7
4 changed files with 20 additions and 2 deletions

View File

@ -167,6 +167,11 @@ if (isset($serendipity['GET']['adminAction']) && ($serendipity['GET']['adminActi
}
}
if (!empty($data['url']) && substr($data['url'], 0, 7) != 'http://' &&
substr($data['url'], 0, 8) != 'https://') {
$data['url'] = 'http://' . $data['url'];
}
serendipity_displayCommentForm(
$serendipity['GET']['entry_id'],
$target_url,
@ -415,6 +420,12 @@ foreach ($sql as $rs) {
$class .= ' serendipity_admin_comment_pending';
}
$header_class = ($comment['status'] == 'pending' ? 'serendipityAdminMsgNote serendipity_admin_comment_pending_header' : '');
if (!empty($comment['url']) && substr($comment['url'], 0, 7) != 'http://' &&
substr($comment['url'], 0, 8) != 'https://') {
$comment['url'] = 'http://' . $comment['url'];
}
?>
<tr>
<td class="<?php echo $header_class; ?>">