We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a20c497 commit d66c612Copy full SHA for d66c612
lib/private/App/AppManager.php
@@ -943,6 +943,6 @@ public function isBackendRequired(string $backend): bool {
943
*/
944
public function cleanAppId(string $app): string {
945
/* Only lowercase alphanumeric is allowed */
946
- return preg_replace('/[^a-z0-9_]+/', '', $app);
+ return preg_replace('/(^[0-9_]|[^a-z0-9_]+|_$)/', '', $app);
947
}
948
0 commit comments