Browse Source

Attachments were being lost when going to address book page due to lack of proper encoding [#2851493]

pdontthink 16 năm trước cách đây
mục cha
commit
9b2c1ddc90
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/addrbook_search_html.php

+ 1 - 1
src/addrbook_search_html.php

@@ -53,7 +53,7 @@ function addr_insert_hidden() {
    }
 
    if (is_object($composeMessage) && $composeMessage->entities)
-       echo addHidden('attachments', serialize($composeMessage->entities));
+       echo addHidden('attachments', urlencode(serialize($composeMessage->entities)));
 
    echo addHidden('session', $session).
         addHidden('subject', $subject).