Skip to content

Commit

Permalink
Update admin controller
Browse files Browse the repository at this point in the history
  • Loading branch information
M0rgan01 committed Jan 20, 2025
1 parent a48f61d commit e9861d0
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions classes/Workspace.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,11 @@ public function createHtAccess(string $modulePath): void
<IfModule mod_rewrite.c>
RewriteEngine On
# Si on accède au dossier "log", on autorise l'accès
RewriteCond %{REQUEST_URI} ^/log/ [NC]
RewriteRule ^ - [L]
# Sinon, on interdit l'accès
RewriteCond %{REQUEST_URI} ^.*/autoupgrade/logs/ [NC]
RewriteCond %{REQUEST_URI} !\.txt$ [NC]
RewriteRule ^ - [F]
RewriteRule ^ - [L]
</IfModule>
HTACCESS;
if (!file_exists($filePath)) {
Expand All @@ -106,7 +105,7 @@ public function createHtAccess(string $modulePath): void
/**
* @throws IOException
*/
public function init($modulePath): void
public function init(string $modulePath): void
{
$this->createFolders();
$this->createHtAccess($modulePath);
Expand Down

0 comments on commit e9861d0

Please sign in to comment.