From 81864f47e8af3a95158c837002b3f9e2e0730c25 Mon Sep 17 00:00:00 2001 From: Conrad Sollitt Date: Mon, 2 Dec 2024 23:40:25 -0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=84=20Add=20support=20for=20Text=20Doc?= =?UTF-8?q?uments=20on=20the=20Playground?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/app.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/app.php b/app/app.php index 37ea9cb..b067254 100644 --- a/app/app.php +++ b/app/app.php @@ -108,7 +108,7 @@ function getSite($path) { // [index.php] is not allowed because users are not allowed to modify it, // and [index.htm] because it could override the default page. function fileNameIsValid($name) { - $pattern = '/^[a-zA-Z0-9_\-]{1,}.(php|htm|js|css|svg)$/'; + $pattern = '/^[a-zA-Z0-9_\-]{1,}.(php|htm|js|css|svg|txt)$/'; if (!preg_match($pattern, $name)) { return false; }