[tbb-commits] [tor-browser-build/master] Bug 26234: add update_responses option to specify rewrite rules

gk at torproject.org gk at torproject.org
Wed Jun 13 07:36:22 UTC 2018


commit 3cab74acf8a2f2a311c133544ccc8c00a43e00a2
Author: Nicolas Vigier <boklm at torproject.org>
Date:   Mon Jun 11 17:49:03 2018 +0200

    Bug 26234: add update_responses option to specify rewrite rules
    
    Add the htaccess_rewrite_rules option which can be used to specify
    rewrite rules to be added to the generated .htaccess files.
---
 tools/update-responses/update_responses | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/update-responses/update_responses b/tools/update-responses/update_responses
index 1df35b3..77b9c96 100755
--- a/tools/update-responses/update_responses
+++ b/tools/update-responses/update_responses
@@ -376,6 +376,7 @@ sub write_htaccess {
     my $flags = "[last]";
     foreach my $channel (@channels) {
         my $htaccess = "RewriteEngine On\n";
+        $htaccess .= $config->{htaccess_rewrite_rules}{$channel} // '';
         my $version = $config->{channels}{$channel};
         my $migrate_langs = $config->{versions}{$version}{migrate_langs} // {};
         my $files = $config->{versions}{$version}{files};



More information about the tbb-commits mailing list