Skip to content

Commit

Permalink
Fixed issue: Files with spaces cannot be attached to email templates
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Apr 4, 2014
1 parent 1f4a986 commit 19282c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/controllers/admin/emailtemplates.php
Expand Up @@ -103,7 +103,7 @@ function update($iSurveyId)
foreach ($attachments as $index => &$attachment)
{
// We again take the real path.
$localName = realpath(str_replace($uploadUrl, $uploadDir, $attachment['url']));
$localName = realpath(urldecode(str_replace($uploadUrl, $uploadDir, $attachment['url'])));
if ($localName !== false)
{
if (strpos($localName, $uploadDir) === 0)
Expand Down

0 comments on commit 19282c2

Please sign in to comment.