Skip to content

Commit

Permalink
use default arg
Browse files Browse the repository at this point in the history
  • Loading branch information
cancan101 committed Nov 19, 2024
1 parent 0e1f904 commit c4b2cc2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Controller/Admin/Asset/AssetController.php
Original file line number Diff line number Diff line change
Expand Up @@ -401,9 +401,8 @@ public function existsAction(Request $request): JsonResponse
{
$parentAsset = \Pimcore\Model\Asset::getById((int)$request->get('parentId'));

$dir = '';
if ($request->get('dir')){
$dir = $request->get('dir');
$dir = $request->get('dir', '');
if ($dir){
// this is for uploading folders with Drag&Drop
// param "dir" contains the relative path of the file
if (strpos($dir, '..') !== false) {
Expand Down

0 comments on commit c4b2cc2

Please sign in to comment.