X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fincludes.php;h=709fb2aaf38989976ce77bd50aeda88ebbeff5d1;hb=6be6431d3160e268c6e0bce8a8905056d007a6bb;hp=a9af02b50245144ec9ed515900e5e26c51395b59;hpb=b848cab53db89342f0a854a00be91cadbcff2967;p=shipsimu.git diff --git a/inc/includes.php b/inc/includes.php index a9af02b..709fb2a 100644 --- a/inc/includes.php +++ b/inc/includes.php @@ -52,7 +52,7 @@ if (!empty($_GET['app'])) { $application = htmlentities(strip_tags($application), ENT_QUOTES); // Secure it a little more with a reg.exp. -$application = preg_replace('/([^a-z_-])+/i', "", $application); +$application = preg_replace('/([^a-z0-9_-])+/i', "", $application); // Set the application name for later usage $cfg->setConfigEntry('app_name', $application);