From 0928ae8a70a9ebda3df7345d5c50fecf36b64ee3 Mon Sep 17 00:00:00 2001 From: Fraenkiman Date: Mon, 26 Dec 2022 02:36:47 +0100 Subject: [PATCH] PrettyURLS plugin does not prevent directory browsing Preventing directory browsing via PrettyURLS plugin when .htaccess is deleted by the user. ...as an addition to #No. 174 --- fp-plugins/prettyurls/htaccess-new | 2 ++ fp-plugins/prettyurls/htaccess.txt | 1 + fp-plugins/prettyurls/plugin.prettyurls.php | 2 ++ 3 files changed, 5 insertions(+) diff --git a/fp-plugins/prettyurls/htaccess-new b/fp-plugins/prettyurls/htaccess-new index e469677..475aa5c 100644 --- a/fp-plugins/prettyurls/htaccess-new +++ b/fp-plugins/prettyurls/htaccess-new @@ -1,3 +1,5 @@ +Options -Indexes + RewriteEngine On RewriteBase /~nowhereman/flatpress/branch/flatpress/ diff --git a/fp-plugins/prettyurls/htaccess.txt b/fp-plugins/prettyurls/htaccess.txt index c69b355..a666c77 100644 --- a/fp-plugins/prettyurls/htaccess.txt +++ b/fp-plugins/prettyurls/htaccess.txt @@ -1,4 +1,5 @@ AddType application/x-httpd-php .php .htm .html +Options -Indexes RewriteEngine On RewriteBase /~nowhereman/flatpress/ diff --git a/fp-plugins/prettyurls/plugin.prettyurls.php b/fp-plugins/prettyurls/plugin.prettyurls.php index 9e8de01..91de04a 100644 --- a/fp-plugins/prettyurls/plugin.prettyurls.php +++ b/fp-plugins/prettyurls/plugin.prettyurls.php @@ -628,6 +628,8 @@ if (class_exists('AdminPanelAction')) { # Thanks again WP :) + Options -Indexes + RewriteEngine On RewriteBase ' . $blogroot . '