Skip to content

Commit

Permalink
Fix Path to Images Folder in windows directory separator
Browse files Browse the repository at this point in the history
  • Loading branch information
joomdonation committed Nov 22, 2022
1 parent 04dbdae commit 546b4c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/src/Form/Field/MediaField.php
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ public function getLayoutData()
* configured in filesystem local plugin
*/
$path = ComponentHelper::getParams('com_media')->get('image_path', 'images') . '/' . $this->directory;
$paths = explode('/', $path);
$paths = explode('/', Path::clean($path, '/'));

if (MediaHelper::isValidLocalDirectory($paths[0])) {
$adapterName = array_shift($paths);
Expand Down

0 comments on commit 546b4c4

Please sign in to comment.