diff options
author | Christian Wieninger <cwieninger (at) gmx (dot) de> | 2008-02-11 18:41:21 +0100 |
---|---|---|
committer | Christian Wieninger <cwieninger (at) gmx (dot) de> | 2008-02-11 18:41:21 +0100 |
commit | 7e6783766dc0b3c37df93a0b72bb288375ab44f6 (patch) | |
tree | d2b29e45b1874aa2b6a5c18c47711c35fcc11183 /blacklist.c | |
parent | d799a7bab1108d4a7b2fff21eb3d6ba108248f24 (diff) | |
download | vdr-plugin-epgsearch-7e6783766dc0b3c37df93a0b72bb288375ab44f6.tar.gz vdr-plugin-epgsearch-7e6783766dc0b3c37df93a0b72bb288375ab44f6.tar.bz2 |
fixed a problem with pipes in the pattern of blacklist, thanks to Andreas Mair for reporting
Diffstat (limited to 'blacklist.c')
-rw-r--r-- | blacklist.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/blacklist.c b/blacklist.c index aff3211..6f23aef 100644 --- a/blacklist.c +++ b/blacklist.c @@ -175,14 +175,10 @@ const char *cBlacklist::ToText(void) char* tmp_catvalues = NULL; free(buffer); - if (mode < 4 || mode == 5) // not a regular expression - asprintf(&tmp_search, "%s", search); - else if (mode ==4) - { - tmp_search = strdup(search); - while(strstr(tmp_search, "|")) - tmp_search = strreplace(tmp_search, "|", "!^pipe^!"); // ugly: replace with something, that should not happen to be part of a regular expression - } + tmp_search = strdup(search); + while(strstr(tmp_search, "|")) + tmp_search = strreplace(tmp_search, "|", "!^pipe^!"); // ugly: replace a pipe with something, that should not happen to be part of a regular expression + strreplace(tmp_search, ':', '|'); if (useTime) |