summaryrefslogtreecommitdiff
path: root/inc/Mailer.class.php
diff options
context:
space:
mode:
authorAnika Henke <anika@selfthinker.org>2013-07-21 18:52:40 +0100
committerAnika Henke <anika@selfthinker.org>2013-07-21 18:52:40 +0100
commit8c7670b52dc523860f442a628ae7d226988e96d7 (patch)
treed99053d878efb0829f99a35bb77cb02c1ae3c524 /inc/Mailer.class.php
parent20beef63b4694afdc3d6c434c3d27c982b6a986b (diff)
parentfbd8067eeeb9f424981aad8b283e17f734c738c3 (diff)
downloadrpg-8c7670b52dc523860f442a628ae7d226988e96d7.tar.gz
rpg-8c7670b52dc523860f442a628ae7d226988e96d7.tar.bz2
Merge remote-tracking branch 'origin/master' into loggedin-class
Diffstat (limited to 'inc/Mailer.class.php')
-rw-r--r--inc/Mailer.class.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/Mailer.class.php b/inc/Mailer.class.php
index f87d7dd84..cb5f22f54 100644
--- a/inc/Mailer.class.php
+++ b/inc/Mailer.class.php
@@ -192,7 +192,7 @@ class Mailer {
// copy over all replacements missing for HTML (autolink URLs)
foreach($textrep as $key => $value) {
if(isset($htmlrep[$key])) continue;
- if(preg_match('/^https?:\/\//i', $value)) {
+ if(media_isexternal($value)) {
$htmlrep[$key] = '<a href="'.hsc($value).'">'.hsc($value).'</a>';
} else {
$htmlrep[$key] = hsc($value);