Skip to content
Permalink
Browse files

Fix logic in file upload check introduced in 3.9.5 (#24637)

  • Loading branch information...
SolutioAndy authored and HLeithner committed Apr 19, 2019
1 parent a81ada4 commit a7b6ca97620292d22451fd14e6df710c1a426bd2
Showing with 1 addition and 1 deletion.
  1. +1 −1 administrator/components/com_media/controllers/file.json.php
@@ -94,7 +94,7 @@ public function upload()
$filepath = JPath::clean($files['final']);
if (!$mediaHelper->canUpload($file, 'com_media')
|| !strpos(realpath($filepath), JPath::clean(COM_MEDIA_BASE)) !== 0)
|| strpos(realpath($fileparts['dirname']), JPath::clean(COM_MEDIA_BASE)) !== 0)
{
try
{

0 comments on commit a7b6ca9

Please sign in to comment.
You can’t perform that action at this time.