Skip to content

Commit

Permalink
Putting in fix for directly requesting an unfiltered image triggering…
Browse files Browse the repository at this point in the history
…`checkReferrer()` when it shouldn't
  • Loading branch information
meenie committed Jul 25, 2013
1 parent 90ff669 commit 0386f34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Munee/Asset/Type/Image.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ protected function checkCache($originalFile, $cacheFile)
return file_get_contents($cacheFile);
}

if ($this->options['checkReferrer']) {
if (count($this->filters) > 0 && $this->options['checkReferrer']) {
$this->checkReferrer();
}

Expand Down

0 comments on commit 0386f34

Please sign in to comment.