Commit 44444e5d authored by Hanspeter Portner's avatar Hanspeter Portner

osc: use strpbrk to match path wildcards.

parent b12b10c1
......@@ -33,8 +33,7 @@ struct _osc_responder_data_t {
__realtime static inline bool
_osc_path_has_wildcards(const char *path)
{
for(const char *ptr=path+1; *ptr; ptr++)
if(strchr("?*[{", *ptr))
if(strpbrk(path, "?*[{}]"))
return true;
return false;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment