From cce3982854f470ae0247cc87ba8890464328f3c0 Mon Sep 17 00:00:00 2001 From: XlXi Date: Tue, 5 Jan 2021 23:01:05 -0500 Subject: [PATCH] more shit --- WebAssemblies/API.php | 3 +++ public/api/clientsettings/.htaccess | 1 + public/api/clientsettings/cshared.php | 18 ++++++++++++++++++ 3 files changed, 22 insertions(+) create mode 100644 public/api/clientsettings/cshared.php diff --git a/WebAssemblies/API.php b/WebAssemblies/API.php index 8734f52..8d026da 100644 --- a/WebAssemblies/API.php +++ b/WebAssemblies/API.php @@ -10,6 +10,9 @@ namespace Platinus; class API { function __construct() { + if(isset($_SERVER["REQUEST_URI"]) && strpos($_SERVER["REQUEST_URI"],".php")){ + API::InvokeError(403, "Unauthorized"); + } if(http_response_code() == 404){ API::InvokeError(403, "Unauthorized"); } diff --git a/public/api/clientsettings/.htaccess b/public/api/clientsettings/.htaccess index d064725..8625f59 100644 --- a/public/api/clientsettings/.htaccess +++ b/public/api/clientsettings/.htaccess @@ -1,3 +1,4 @@ RewriteEngine on RewriteRule ^Setting/QuietGet/ClientAppSettings/?$ /cappsettings.php [NC,L] +RewriteRule ^Setting/QuietGet/ClientSharedSettings/?$ ../cshared.php [NC,L] ErrorDocument 404 /index.php \ No newline at end of file diff --git a/public/api/clientsettings/cshared.php b/public/api/clientsettings/cshared.php new file mode 100644 index 0000000..a2981cc --- /dev/null +++ b/public/api/clientsettings/cshared.php @@ -0,0 +1,18 @@ + +{ + +} \ No newline at end of file