Fix return url when dropping post loaded by update_* in non-frio

This commit is contained in:
Jonny Tischbein 2018-11-06 21:37:10 +01:00
父節點 dc669fa736
當前提交 509dc29b2d
共有 1 個文件被更改,包括 4 次插入0 次删除

查看文件

@ -410,6 +410,10 @@ function drop_item($id, $return = '')
Item::deleteForUser(['id' => $item['id']], local_user());
$return_url = hex2bin($return);
// removes update_* from return_url to ignore Ajax refresh
$return_url = str_replace("update_", "", $return_url);
if (empty($return_url) || strpos($return_url, 'display') !== false) {
$a->internalRedirect('network');
//NOTREACHED