From 7a823f52b4f3f7ab70f092df4c59328906c82274 Mon Sep 17 00:00:00 2001 From: Luc Somers Date: Mon, 11 Mar 2024 10:59:50 +0100 Subject: [PATCH] #361 added default prefix to username to prevent errors when only using numbers --- RAP4/customizations/bootstrap/files/ExecEngineFunctions.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/RAP4/customizations/bootstrap/files/ExecEngineFunctions.php b/RAP4/customizations/bootstrap/files/ExecEngineFunctions.php index 6857eb2b..d7d51e0e 100644 --- a/RAP4/customizations/bootstrap/files/ExecEngineFunctions.php +++ b/RAP4/customizations/bootstrap/files/ExecEngineFunctions.php @@ -343,11 +343,14 @@ $zipContentForCommandline = base64_encode($zipContent); $mainAldForCommandLine = base64_encode("main.adl"); + //sanitize the username for usage later $pattern = '/[\W+]/'; $userName=strtolower($userName); $userName = preg_replace($pattern, '-', $userName); + $userName = 'st-' . $userName; + $deployment = getenv('RAP_DEPLOYMENT'); if ($deployment == 'Kubernetes') { /** Deployed on Kubernetes Cluster