diff options
Diffstat (limited to 'includes/event.php')
-rw-r--r-- | includes/event.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/event.php b/includes/event.php index 8b98c26..c5b2924 100644 --- a/includes/event.php +++ b/includes/event.php @@ -31,8 +31,8 @@ $event['event_text'] = sanitizeForWeb(urldecode($event['event_text'])); $event['description'] = sanitizeForWeb(urldecode($event['description'])); $event['location'] = sanitizeForWeb(urldecode($event['location'])); if (isset($event['description'])) { - $event['description'] = ereg_replace("(blocked)?([[:alpha:]]+://([^<>&[:space:]]|&)+[[:alnum:]/])", '<a target="_new" href="\2">\2</a>', $event['description']); - $event['description'] = ereg_replace("(blocked)?(mailto:)?([[:alnum:]_.%+-]+@[[:alnum:].-]+\.[[:alpha:]]{2,4})", '<a href="mailto:\3">\3</a>', $event['description']); + $event['description'] = preg_replace("#(blocked)?([[:alpha:]]+://([^<>&[:space:]]|&)+[[:alnum:]/])#", '<a target="_new" href="\2">\2</a>', $event['description']); + $event['description'] = preg_replace("#(blocked)?(mailto:)?([[:alnum:]_.%+-]+@[[:alnum:].-]+\.[[:alpha:]]{2,4})#", '<a href="mailto:\3">\3</a>', $event['description']); } if (isset($organizer) && is_array($organizer)) { |