From e37c43ea06deabe86bd0ec572a89e5159b4b6997 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Mon, 23 Sep 2019 09:11:05 +0000 Subject: composer update ezyang/htmlpurifier (cherry picked from commit a34ce790129bdd729a5019895ea6cd4c59f08ba4) --- vendor/ezyang/htmlpurifier/maintenance/.htaccess | 8 ++++- vendor/ezyang/htmlpurifier/maintenance/flush.php | 30 ------------------- .../htmlpurifier/maintenance/update-config.php | 34 ---------------------- 3 files changed, 7 insertions(+), 65 deletions(-) delete mode 100644 vendor/ezyang/htmlpurifier/maintenance/flush.php delete mode 100644 vendor/ezyang/htmlpurifier/maintenance/update-config.php (limited to 'vendor/ezyang/htmlpurifier/maintenance') diff --git a/vendor/ezyang/htmlpurifier/maintenance/.htaccess b/vendor/ezyang/htmlpurifier/maintenance/.htaccess index 3a4288278..8f6c14146 100644 --- a/vendor/ezyang/htmlpurifier/maintenance/.htaccess +++ b/vendor/ezyang/htmlpurifier/maintenance/.htaccess @@ -1 +1,7 @@ -Deny from all + + Require all denied + + + + Deny from all + diff --git a/vendor/ezyang/htmlpurifier/maintenance/flush.php b/vendor/ezyang/htmlpurifier/maintenance/flush.php deleted file mode 100644 index c0853d230..000000000 --- a/vendor/ezyang/htmlpurifier/maintenance/flush.php +++ /dev/null @@ -1,30 +0,0 @@ -#!/usr/bin/php -set and $config->get to the new - * format, as described by docs/dev-config-bcbreaks.txt - */ - -$FS = new FSTools(); -chdir(dirname(__FILE__) . '/..'); -$raw_files = $FS->globr('.', '*.php'); -foreach ($raw_files as $file) { - $file = substr($file, 2); // rm leading './' - if (strpos($file, 'library/standalone/') === 0) continue; - if (strpos($file, 'maintenance/update-config.php') === 0) continue; - if (strpos($file, 'test-settings.php') === 0) continue; - if (substr_count($file, '.') > 1) continue; // rm meta files - // process the file - $contents = file_get_contents($file); - $contents = preg_replace( - "#config->(set|get)\('(.+?)', '(.+?)'#", - "config->\\1('\\2.\\3'", - $contents - ); - if ($contents === '') continue; - file_put_contents($file, $contents); -} - -// vim: et sw=4 sts=4 -- cgit v1.2.3