Skip to content

Commit 9ba08fb

Browse files
committed
Stop if running old version
Shouldn't do this and could be a security vuln.
1 parent 15fe430 commit 9ba08fb

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

lib/headers.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
<?php
2+
// Stop if we're running an old version in the tmp dir
3+
if(strpos(str_replace("\\","/",dirname(__FILE__)),"tmp/oldVersion") !== false) {
4+
die("This is an old version of ICEcoder. Won't run from tmp/oldVersion/ dir.");
5+
}
6+
27
// Load common functions
38
include_once(dirname(__FILE__)."/settings-common.php");
49
$text = $_SESSION['text'];

0 commit comments

Comments
 (0)