summaryrefslogtreecommitdiff
path: root/program/steps/mail/func.inc
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2007-03-23 18:54:39 +0000
committerthomascube <thomas@roundcube.net>2007-03-23 18:54:39 +0000
commit28bfe4dc80a1431655666cfb3cec30f89e3459c7 (patch)
tree56e074bc2a86456cdd1fb94ec5ec550cffdeab24 /program/steps/mail/func.inc
parent8451fa4eb65976669bcfd345024e912067308795 (diff)
Fixed bugs #1484276 and #1484300
Diffstat (limited to 'program/steps/mail/func.inc')
-rw-r--r--program/steps/mail/func.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc
index 1b98f1d52..37c1e1e19 100644
--- a/program/steps/mail/func.inc
+++ b/program/steps/mail/func.inc
@@ -1398,10 +1398,10 @@ function rcmail_address_string($input, $max=NULL, $addicon=NULL)
else if (preg_match($EMAIL_ADDRESS_PATTERN, $part['mailto']))
{
$out .= sprintf('<a href="mailto:%s" onclick="return %s.command(\'compose\',\'%s\',this)" class="rcmContactAddress" title="%s">%s</a>',
- $part['mailto'],
+ Q($part['mailto']),
$JS_OBJECT_NAME,
- $part['mailto'],
- $part['mailto'],
+ JQ($part['mailto']),
+ Q($part['mailto']),
Q($part['name']));
if ($addicon)
@@ -1417,7 +1417,7 @@ function rcmail_address_string($input, $max=NULL, $addicon=NULL)
if ($part['name'])
$out .= Q($part['name']);
if ($part['mailto'])
- $out .= (strlen($out) ? ' ' : '') . sprintf('&lt;%s&gt;', $part['mailto']);
+ $out .= (strlen($out) ? ' ' : '') . sprintf('&lt;%s&gt;', Q($part['mailto']));
}
if ($c>$j)