An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
Refactor string concatenation and update function signatures for improved readability and null handling in shared helper functions
Andras Bacsai74311f4feb48
diff --git a/bootstrap/helpers/shared.php b/bootstrap/helpers/shared.phpindex d64b5ab6e9..a3ef93dfc3 100644--- a/bootstrap/helpers/shared.php+++ b/bootstrap/helpers/shared.php@@ -90,8 +90,11 @@ function metrics_dir(): stringreturn base_configuration_dir().'/metrics';}-function sanitize_string(string $input): string+function sanitize_string(?string $input = null): ?string{+ if (is_null($input)) {+ return null;+ }// Remove any HTML/PHP tags$sanitized = strip_tags($input);