summaryrefslogtreecommitdiffstats
path: root/application/libraries
diff options
context:
space:
mode:
Diffstat (limited to 'application/libraries')
-rw-r--r--application/libraries/Pygments.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/application/libraries/Pygments.php b/application/libraries/Pygments.php
index 5d37b69c3..81963bc68 100644
--- a/application/libraries/Pygments.php
+++ b/application/libraries/Pygments.php
@@ -173,6 +173,9 @@ class Pygments {
if (strpos($this->filename, ".") !== false) {
$extension = substr($this->filename, strrpos($this->filename, ".") + 1);
+ if ($extension === false) {
+ return false;
+ }
$extensionarray = array(
'awk' => 'awk',