$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);