contao/import — Issue #2272: removeOldFeeds fails when a symlink is existing in TL_ROOT
Author: importer
Created: 2011-11-29 19:18:21+00:00
State: open
Labels: Defect, framework, Invalid

When the Controller tries to remove the old feeds and there is an symlink in TL_ROOT, Contao tries to handle this symlink as file and crashes.

To fix this, we have to change line 2595 in Controller.php:

```
//if (is_dir(TL_ROOT . '/' . $file))
if (is_dir(TL_ROOT . '/' . $file) || is_link(TL_ROOT . '/' . $file))
```

Another solution would be, to read the link destination, check if it is a file and writable and use that one then but I guess that will be totally beyond the scope.

--- _Originally created by xtra on July 9th, 2010, at 01:53am (ID 2272)_