diff --git a/index.php b/index.php
index dcf5fc6..c1e326d 100644
--- a/index.php
+++ b/index.php
@@ -17,8 +17,10 @@ if ($ICEcoder["checkUpdates"]) {
$icvInfo = explode("\n", curl_exec($ch));
}
$icv = $icvInfo[0];
- $icvI = $icvInfo[1];
- if ($ICEcoder["versionNo"]<$icv) {
+ $icvI = str_replace('"','\\\'',$icvInfo[1]);
+ $thisV = $ICEcoder["versionNo"];
+ if (strpos($thisV,"beta")>-1 && !strpos($icv,"beta") && str_replace(" beta","",$thisV) == $icv) {$thisV-=0.1;};
+ if ($thisV<$icv) {
$updateMsg = ";top.ICEcoder.dataMessage('UPDATE INFO: ICEcoder v ".$icv." now available. (Your version is v ".$ICEcoder["versionNo"]."). Get it free from icecoder.net
".$icvI."');";
}
}