From fc9bcf45e8a4a91adbff80b2dd525de3dee6977e Mon Sep 17 00:00:00 2001 From: Fraenkiman Date: Mon, 26 Dec 2022 02:17:16 +0100 Subject: [PATCH 1/2] Subject line of email when new comment is not translated Added multilingual support for email subject line for new comments --- comments.php | 2 +- fp-interface/lang/de-de/lang.comments.php | 2 ++ fp-interface/lang/en-us/lang.comments.php | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/comments.php b/comments.php index ec49d39..b461d07 100644 --- a/comments.php +++ b/comments.php @@ -222,7 +222,7 @@ function commentform() { $fp_config ['general'] ['title'] ), $lang ['comments'] ['mail']); - @utils_mail($from_mail, "New comment on {$fp_config['general']['title']}", $mail); + @utils_mail($from_mail, "{$lang ['comments'] ['newcomment']} {$lang ['comments'] ['newcomment']} {$fp_config['general']['title']}", $mail); } // if comment is valid, this redirect will clean the postdata diff --git a/fp-interface/lang/de-de/lang.comments.php b/fp-interface/lang/de-de/lang.comments.php index 45210e7..aaec3f1 100644 --- a/fp-interface/lang/de-de/lang.comments.php +++ b/fp-interface/lang/de-de/lang.comments.php @@ -16,4 +16,6 @@ Automatisch generiert von, '; +$lang ['comments'] ['newcomment'] = 'Neuer Kommentar auf'; + ?> diff --git a/fp-interface/lang/en-us/lang.comments.php b/fp-interface/lang/en-us/lang.comments.php index b8785ed..4c25b9f 100644 --- a/fp-interface/lang/en-us/lang.comments.php +++ b/fp-interface/lang/en-us/lang.comments.php @@ -16,4 +16,6 @@ All the best, '; +$lang ['comments'] ['newcomment'] = 'New comment on'; + ?> From 0928ae8a70a9ebda3df7345d5c50fecf36b64ee3 Mon Sep 17 00:00:00 2001 From: Fraenkiman Date: Mon, 26 Dec 2022 02:36:47 +0100 Subject: [PATCH 2/2] 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 . '