Migration: Fix URL replacement for files with spaces in titles - refs BT#22039

pull/5841/head
christianbeeznst 11 months ago
parent 667d1bdb78
commit 88c8c88524
  1. 2
      src/CoreBundle/Migrations/Schema/V200/Version20241003120000.php

@ -131,7 +131,7 @@ final class Version20241003120000 extends AbstractMigrationChamilo
$attribute = $matches[1]; // Capture whether it's a `href` or `src`
$folderId = (int)$matches[2]; // Capture the first digit of the userId (folderId)
$userId = (int)$matches[3]; // Capture the full userId
$filename = $matches[4]; // Capture the filename
$filename = urldecode($matches[4]); // Decode the filename
error_log("Processing file: $filename for userId: $userId (Folder ID: $folderId)");

Loading…
Cancel
Save