Skip to content

Commit e72ccf4

Browse files
fix invalid regex for webapp name validation
1 parent 8782893 commit e72ccf4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/add/webapp/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
$v_web_apps = array();
9292
foreach($appInstallers as $app){
9393
$hestia = new \Hestia\System\HestiaApp();
94-
if( preg_match('/Installers\/([a-zA-Z0-0].*)\/([a-zA-Z0-0].*).php/', $app, $matches)){
94+
if( preg_match('/Installers\/([a-zA-Z0-9].*)\/([a-zA-Z0-9].*).php/', $app, $matches)){
9595
if ($matches[1] != "Resources"){
9696
$app_installer_class = '\Hestia\WebApp\Installers\\'.$matches[1].'\\' . $matches[1] . 'Setup';
9797
$app_installer = new $app_installer_class($v_domain, $hestia);

0 commit comments

Comments
 (0)