Kim Huebel 2017-07-12 20:35:32 +02:00
parent b469c0f380
commit ab327a3f0c
2 changed files with 7 additions and 1 deletions

View file

@ -44,10 +44,16 @@ function isProcessRunning($processname) {
}
}
function clean($string) {
return preg_replace('/[^A-Za-z0-9\-\/\ \.\_]/', '', $string); // Removes special chars.
}
function createConfigLines() {
$out ="";
foreach($_GET as $key=>$val) {
if($key != "cmd") {
$val = clean($val);
$out .= "define(\"$key\", \"$val\");"."\n";
}
}

View file

@ -1,3 +1,3 @@
<?php
define("VERSION", "20170516-1 (".getGitVersion().")");
define("VERSION", "20170712-1 (".getGitVersion().")");
?>