Les avertissements suivants se sont produits :
Warning [2] Undefined array key 0 - Line: 1640 - File: showthread.php PHP 8.2.18 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php 1640 errorHandler->error_callback
/showthread.php 915 buildtree




Note de ce sujet :
  • Moyenne : 0 (0 vote(s))
  • 1
  • 2
  • 3
  • 4
  • 5
Dirty fix for ImageManager
#1
Hi,

Here is my quick and dirty fix for the imagemanager in the deletion problem (the 1.11.3 did not fix my problem).

The fix

in lib/FileManager/imagemanager/Classes/ImageManager.php

Line 373

Replace

Code :
if($key == $path)


with

Code :
if($key == $path || $key == $path."/")



The problem seems to be in the verification of relative path in line if( !$this->validRelativePath($r2) ) return false;
The getDirskeys have "/" at the end but the $r2 not and the compare return false...


Messages dans ce sujet

Atteindre :


Utilisateur(s) parcourant ce sujet : 1 visiteur(s)