diff options
author | friendica <info@friendica.com> | 2013-08-06 03:54:49 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-08-06 03:54:49 -0700 |
commit | 24b9799dcad3dc4a224ce2ceaf52645657106a60 (patch) | |
tree | 0230360c1c7f4ec9d05f5846fb297dc3500d1470 /include/text.php | |
parent | 71347bb9e0c5daca206b0ea32812874e165b7b63 (diff) | |
download | volse-hubzilla-24b9799dcad3dc4a224ce2ceaf52645657106a60.tar.gz volse-hubzilla-24b9799dcad3dc4a224ce2ceaf52645657106a60.tar.bz2 volse-hubzilla-24b9799dcad3dc4a224ce2ceaf52645657106a60.zip |
convert all stored json calls to json_decode_plus()
Diffstat (limited to 'include/text.php')
-rwxr-xr-x | include/text.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/text.php b/include/text.php index 979fd897a..61b39cb59 100755 --- a/include/text.php +++ b/include/text.php @@ -988,9 +988,9 @@ function prepare_body(&$item,$attach = false) { if(array_key_exists('item_flags',$item) && ($item['item_flags'] & ITEM_OBSCURED)) { $key = get_config('system','prvkey'); if($item['title']) - $item['title'] = aes_unencapsulate(json_decode($item['title'],true),$key); + $item['title'] = aes_unencapsulate(json_decode_plus($item['title']),$key); if($item['body']) - $item['body'] = aes_unencapsulate(json_decode($item['body'],true),$key); + $item['body'] = aes_unencapsulate(json_decode_plus($item['body']),$key); } $s = prepare_text($item['body'],$item['mimetype']); @@ -1004,7 +1004,7 @@ function prepare_body(&$item,$attach = false) { } - $arr = json_decode($item['attach'],true); + $arr = json_decode_plus($item['attach']); if(count($arr)) { $s .= '<div class="body-attach">'; foreach($arr as $r) { |