aboutsummaryrefslogtreecommitdiffstats
path: root/includes/event.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/event.php')
-rw-r--r--includes/event.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/includes/event.php b/includes/event.php
index 8152942..ab62337 100644
--- a/includes/event.php
+++ b/includes/event.php
@@ -30,7 +30,10 @@ if ($_POST['time'] == -1) {
$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("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]",'<a target="_new" href="\0">\0</a>',$event['description']);
+if (isset($event['description'])) {
+ $event['description'] = ereg_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]", '<a target="_new" href="\0">\0</a>', $event['description']);
+ $event['description'] = ereg_replace("[a-zA-Z0-9_.%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}", '<a href="mailto:\0">\0</a>', $event['description']);
+}
if (isset($organizer) && is_array($organizer)) {
$i=0;

© 2014-2020 Faster IT GmbH | imprint | privacy policy