summaryrefslogtreecommitdiff
path: root/playlist.c
diff options
context:
space:
mode:
Diffstat (limited to 'playlist.c')
-rw-r--r--playlist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/playlist.c b/playlist.c
index 964e3d1e..70c129b2 100644
--- a/playlist.c
+++ b/playlist.c
@@ -3735,7 +3735,7 @@ plt_search_process (playlist_t *playlist, const char *text) {
break;
}
}
- else if (utfcasestr_fast (value, lc)) {
+ else if (u8_valid(value, strlen(value), NULL) && u8_valid(lc, strlen(lc), NULL) && utfcasestr_fast (value, lc)) {
//fprintf (stderr, "%s -> %s match (%s.%s)\n", text, value, pl_find_meta_raw (it, ":URI"), m->key);
// add to list
it->next[PL_SEARCH] = NULL;