Update routine for broken symlink detection

This commit is contained in:
Kijin Sung 2016-06-29 19:20:53 +09:00
parent befe84f21b
commit aef4797c1c
2 changed files with 2 additions and 2 deletions

View file

@ -181,7 +181,7 @@ class FrontEndFileHandler extends Handler
// Fix incorrectly minified URL
if($file->isMinified && !$file->isExternalURL && (!file_exists($file->fileFullPath) || is_link($file->fileFullPath) ||
(filesize($file->fileFullPath) < 32 && trim(file_get_contents($file->fileFullPath)) === $file->keyName)))
(filesize($file->fileFullPath) < 40 && trim(file_get_contents($file->fileFullPath)) === $file->keyName)))
{
if(file_exists($file->fileRealPath . '/' . $file->fileNameNoExt . '.' . $file->fileExtension))
{