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 13, 2024
1 parent de10c20 commit 38e3aa5
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 @@ -399,9 +399,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 38e3aa5

Please sign in to comment.