Fix NULL check for #668 (#672)

This commit is contained in:
kaso17 2016-11-10 09:16:00 +01:00 committed by GitHub
parent 5eccf08690
commit 5922795587
1 changed files with 2 additions and 2 deletions

View File

@ -161,9 +161,9 @@ namespace Jackett.Services
throw new Exception(string.Format("New config content for {0} is empty, please report this bug.", indexer.ID));
}
if (content.Contains("NULL"))
if (content.Contains("\x00"))
{
throw new Exception(string.Format("New config content for {0} contains NULL, please report this bug. Content: {1}", indexer.ID, content));
throw new Exception(string.Format("New config content for {0} contains 0x00, please report this bug. Content: {1}", indexer.ID, content));
}
// make sure the config directory exists