Skip to content

Commit

Permalink
Fixed issue #9299: Bad handling of broken links to uploaded files
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed May 8, 2015
1 parent c0f85eb commit b85786b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions application/controllers/admin/responses.php
Expand Up @@ -420,6 +420,10 @@ function browse($iSurveyID)
readfile($file);
exit;
}
else
{
Yii::app()->session['flashmessage']=gT("The requested file does not exist on the server.");
}
break;
}
}
Expand Down Expand Up @@ -844,6 +848,8 @@ private function _zipFiles($iSurveyID, $responseIds, $zipfilename)
exit;
}
}
else Yii::app()->session['flashmessage']=gT("The requested file does not exist on the server.");

}

/**
Expand Down

0 comments on commit b85786b

Please sign in to comment.