summaryrefslogtreecommitdiff
path: root/program/steps
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2011-03-05 08:10:52 +0000
committeralecpl <alec@alec.pl>2011-03-05 08:10:52 +0000
commit243084601ad83486601f7cf1a756ee6e37e74571 (patch)
treeb52b60ac96c9dfe49219a11e0b9af23767738330 /program/steps
parent01a3689c209f5ff480c178da8bd32de4a61a4e5c (diff)
- Applied some fixes from trunk
Diffstat (limited to 'program/steps')
-rw-r--r--program/steps/mail/func.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc
index a4eb13175..f700a6cdb 100644
--- a/program/steps/mail/func.inc
+++ b/program/steps/mail/func.inc
@@ -1200,6 +1200,9 @@ function rcmail_alter_html_link($matches)
$attrib = parse_attrib_string($matches[2]);
$end = '>';
+ // Remove non-printable characters in URL (#1487805)
+ $attrib['href'] = preg_replace('/[\x00-\x1F]/', '', $attrib['href']);
+
if ($tag == 'link' && preg_match('/^https?:\/\//i', $attrib['href'])) {
$tempurl = 'tmp-' . md5($attrib['href']) . '.css';
$_SESSION['modcssurls'][$tempurl] = $attrib['href'];