Skip to content

Commit

Permalink
Merge branch 'release-1.4.5' of github.com:techjoomla/com_tjfields in…
Browse files Browse the repository at this point in the history
…to Bug#154244
  • Loading branch information
Aishwarya committed Dec 16, 2019
2 parents 84a2000 + 7f4859c commit e4fb9fe
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion administrator/models/fields/file.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,12 @@ protected function getInput()

// To get the file name from URL
$substrString = substr($data->mediaLink, strlen('fpht=') + strpos($data->mediaLink, 'fpht='));
$substrString = substr($substrString, 0, strpos($substrString, '&'));

// Check string having '&' character or not, to get correct file name decoded value
if (strpos($substrString, '&'))
{
$substrString = substr($substrString, 0, strpos($substrString, '&'));
}

// Decode the filename
$fileName = base64_decode($substrString);
Expand Down

0 comments on commit e4fb9fe

Please sign in to comment.