Browse Source

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

tags/2019.01
Jonny Tischbein 2 years ago
parent
commit
509dc29b2d
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      include/items.php

+ 4
- 0
include/items.php View File

@@ -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


Loading…
Cancel
Save