From 3f286c4c2bb531156e16f3a1f809d36811ca1cd4 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 12 Feb 2006 11:15:24 +0100 Subject: [PATCH] skip counters output when number of unread articles at backend equals frontend, move tools to utils/ folder --- sanity_check.php | 7 +++++++ xml-export.php => utils/xml-export.php | 0 xml-import.php => utils/xml-import.php | 0 3 files changed, 7 insertions(+) rename xml-export.php => utils/xml-export.php (100%) rename xml-import.php => utils/xml-import.php (100%) diff --git a/sanity_check.php b/sanity_check.php index 322aa9bf..21fc0819 100644 --- a/sanity_check.php +++ b/sanity_check.php @@ -12,4 +12,11 @@ subdirectory of TT-RSS tree."; exit; } + + if (file_exists("xml-export.php") || file_exists("xml-import.php")) { + print "Fatal Error: XML Import/Export tools (xml-export.php + and xml-import.php) could be used maliciously. Please remove them + from your TT-RSS instance."; + exit; + } ?> diff --git a/xml-export.php b/utils/xml-export.php similarity index 100% rename from xml-export.php rename to utils/xml-export.php diff --git a/xml-import.php b/utils/xml-import.php similarity index 100% rename from xml-import.php rename to utils/xml-import.php -- 2.39.5