summaryrefslogtreecommitdiff
path: root/include/sanity_check.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-04-13 18:32:57 +0400
committerAndrew Dolgov <[email protected]>2013-04-13 18:32:57 +0400
commit5276b7c768332800f6a39658d99b103f81b1598d (patch)
treed4a4e3742a331e0bdd4447db76a2aa58bdf841cd /include/sanity_check.php
parent044cff2d74ece46256201695346d1a0d1d66c746 (diff)
fix handling of blank FEED_CRYPT_KEY
Diffstat (limited to 'include/sanity_check.php')
-rw-r--r--include/sanity_check.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/sanity_check.php b/include/sanity_check.php
index b4102d234..29de4ff5e 100644
--- a/include/sanity_check.php
+++ b/include/sanity_check.php
@@ -67,11 +67,11 @@
array_push($errors, "Javascript cache is not writable (chmod -R 777 ".CACHE_DIR."/js)");
}
- if (strlen(FEED_CRYPT_KEY) != 24) {
+ if (strlen(FEED_CRYPT_KEY) > 0 && strlen(FEED_CRYPT_KEY) != 24) {
array_push($errors, "FEED_CRYPT_KEY should be exactly 24 characters in length.");
}
- if (strlen(FEED_CRYPT_KEY) != 0 && !function_exists("mcrypt_decrypt")) {
+ if (strlen(FEED_CRYPT_KEY) > 0 && !function_exists("mcrypt_decrypt")) {
array_push($errors, "FEED_CRYPT_KEY requires mcrypt functions which are not found.");
}