diff options
author | Aleksander Machniak <alec@alec.pl> | 2012-05-09 13:45:37 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2012-05-09 13:48:10 +0200 |
commit | 644f00d5a2a7e69091d979a0bc964f07fd2b1a51 (patch) | |
tree | 74b10c872077ecfa426b6d564e629d858a7fa9b5 | |
parent | 49ab20c8e790fdbcb43dd2f317f67583b061ce14 (diff) |
Fix add_contact() (#1488465)
-rw-r--r-- | program/js/app.js | 2 | ||||
-rw-r--r-- | program/steps/mail/func.inc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/program/js/app.js b/program/js/app.js index 3518712ed..615f94cae 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -767,7 +767,7 @@ function rcube_webmail() case 'always-load': if (this.env.uid && this.env.sender) { - this.add_contact(urlencode(this.env.sender)); + this.add_contact(this.env.sender); setTimeout(function(){ ref.command('load-images'); }, 300); break; } diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc index ee17b3a3f..1742eee66 100644 --- a/program/steps/mail/func.inc +++ b/program/steps/mail/func.inc @@ -1340,7 +1340,7 @@ function rcmail_address_string($input, $max=null, $linked=false, $addicon=null, if ($addicon && $_SESSION['writeable_abook']) { $address = html::span(null, $address . html::a(array( 'href' => "#add", - 'onclick' => sprintf("return %s.command('add-contact','%s',this)", JS_OBJECT_NAME, urlencode($string)), + 'onclick' => sprintf("return %s.command('add-contact','%s',this)", JS_OBJECT_NAME, $string), 'title' => rcube_label('addtoaddressbook'), 'class' => 'rcmaddcontact', ), |