*/
void LineFiltersList::Import(const String& filters)
{
- const TCHAR sep[] = _T("\r\n");
- TCHAR *p_filters = (TCHAR *)&filters[0];
- TCHAR *pfilterNext = nullptr;
-
if (!filters.empty())
{
+ const TCHAR sep[] = _T("\r\n");
+ TCHAR *p_filters = (TCHAR *)&filters[0];
+ TCHAR *pfilterNext = nullptr;
+
// find each regular expression and add to list
TCHAR *token = _tcstok_s(p_filters, sep, &pfilterNext);
while (token != nullptr)
if (!http_equiv.empty() && _stricmp(http_equiv.c_str(), "content-type") == 0)
{
std::string content(markdown.GetAttribute("content"));
- char *pchKey = &content[0];
if (!content.empty())
{
+ char *pchKey = &content[0];
while (size_t cchKey = strcspn(pchKey += strspn(pchKey, "; \t\r\n"), ";="))
{
char *pchValue = pchKey + cchKey;