diff options
author | thomascube <thomas@roundcube.net> | 2008-03-09 17:54:20 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2008-03-09 17:54:20 +0000 |
commit | c5418bd82c081d7c89012f2d6e497535224ad29d (patch) | |
tree | 83ed4fcd81d91e1b4951340e2d0e77af63782a3f /program | |
parent | 696d0c60c391be71ac58f7fc719ced47863fe756 (diff) |
Correctly encode mailbox names (#1484313)
Diffstat (limited to 'program')
-rw-r--r-- | program/js/app.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/program/js/app.js b/program/js/app.js index 73c03c860..ec5fac3c2 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -712,7 +712,7 @@ function rcube_webmail() break; case 'load-attachment': - var qstring = '_mbox='+this.env.mailbox+'&_uid='+this.env.uid+'&_part='+props.part; + var qstring = '_mbox='+urlencode(this.env.mailbox)+'&_uid='+this.env.uid+'&_part='+props.part; // open attachment in frame if it's of a supported mimetype if (this.env.uid && props.mimetype && find_in_array(props.mimetype, this.mimetypes)>=0) @@ -2010,7 +2010,7 @@ function rcube_webmail() // reset vars this.env.current_page = 1; this.set_busy(true, 'searching'); - this.http_request('search', '_q='+urlencode(value)+(this.env.mailbox ? '&_mbox='+this.env.mailbox : '')+(this.env.source ? '&_source='+urlencode(this.env.source) : ''), true); + this.http_request('search', '_q='+urlencode(value)+(this.env.mailbox ? '&_mbox='+urlencode(this.env.mailbox) : '')+(this.env.source ? '&_source='+urlencode(this.env.source) : ''), true); } return true; }; |