Permalink
Browse files

fix(core): Check existence of cache symlink without usage of readlink()

  • Loading branch information...
iionly committed Nov 27, 2016
1 parent 3dcc5ef commit 3e4dc6a1f2e2b20c5e31800e925ca5779a6f40cf
Showing with 1 addition and 1 deletion.
  1. +1 −1 engine/lib/cache.php
View
@@ -235,7 +235,7 @@ function elgg_flush_caches() {
function _elgg_is_cache_symlinked() {
$link = elgg_get_root_path() . 'cache/';
$target = elgg_get_cache_path() . 'views_simplecache/';
return is_dir($link) && realpath($target) == realpath(readlink($link));
return is_dir($link) && realpath($target) == realpath($link);
}
/**

0 comments on commit 3e4dc6a

Please sign in to comment.