Skip to content
Snippets Groups Projects
Commit 1305c22b authored by totten's avatar totten
Browse files

CRM-14092 - isBrowsable - Defensive programming

parent 9404eeac
No related branches found
No related tags found
No related merge requests found
......@@ -256,7 +256,7 @@ class CRM_Utils_Check_Security {
* @return bool
*/
public function isBrowsable($dir, $url) {
if (empty($dir) || empty($url)) {
if (empty($dir) || empty($url) || !is_dir($dir)) {
return FALSE;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment