Skip to content

Commit 955f0fd

Browse files
authored
Merge pull request hestiacp#2001 from PsychotherapistSam/fix/app-installer-name-validation
Fix invalid regex for WebApp name validation
2 parents 8782893 + 145c459 commit 955f0fd

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ All notable changes to this project will be documented in this file.
1212

1313
- Resolve issue with double ENFORCE_SUBDOMAIN_OWNERSHIP keys in hestia.conf
1414
- Resolve issue with create new user during install in some cases #2000
15+
- Fix an issue with Quick Install apps named Test123
1516

1617
## [1.4.7] - Service release
1718

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-Z][a-zA-Z0,9].*)\/([a-zA-Z][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)