Skip to content

Commit

Permalink
Merge pull request #343 from AmpersandTarski/feature/338-limit-allowe…
Browse files Browse the repository at this point in the history
…d-chars-in-username-or-do-not-use-username-in-code

Feature/338 limit allowed chars in username or do not use username in code
  • Loading branch information
FranSlot committed Dec 21, 2023
2 parents 6be6166 + 5960b42 commit 4d7657a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions RAP4/customizations/bootstrap/files/ExecEngineFunctions.php
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,10 @@
* - run kubectl apply -f "student-manifest-{{student}}.yaml"
*/

$pattern = '/[\W+]/';

$studentName=strtolower($userName);
$studentName = preg_replace($pattern, '-', $studentName);

$namespace=getenv('RAP_KUBERNETES_NAMESPACE');
$containerImage=getenv('RAP_STUDENT_PROTO_IMAGE');
Expand Down

0 comments on commit 4d7657a

Please sign in to comment.