summaryrefslogtreecommitdiff
path: root/program/steps/mail
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2012-12-15 18:32:42 +0100
committerAleksander Machniak <alec@alec.pl>2012-12-15 18:32:42 +0100
commitc0208002a804aa36cf6891e9875e2f8adc0deb2d (patch)
tree09477c920462c9de36b0522cbb3548bb6a2a0b2f /program/steps/mail
parentff4a92c8e2f11711975f9697a057cd96ce370bc5 (diff)
Fix escaping of add-contact arguments - fixes JS error in IE
Diffstat (limited to 'program/steps/mail')
-rw-r--r--program/steps/mail/func.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc
index bd381d5c0..88391b102 100644
--- a/program/steps/mail/func.inc
+++ b/program/steps/mail/func.inc
@@ -1528,7 +1528,7 @@ function rcmail_address_string($input, $max=null, $linked=false, $addicon=null,
if ($addicon && $_SESSION['writeable_abook']) {
$address .= html::a(array(
'href' => "#add",
- 'onclick' => sprintf("return %s.command('add-contact','%s',this)", JS_OBJECT_NAME, $string),
+ 'onclick' => sprintf("return %s.command('add-contact','%s',this)", JS_OBJECT_NAME, JQ($string)),
'title' => rcube_label('addtoaddressbook'),
'class' => 'rcmaddcontact',
),