Commit d2f0f229 authored by Rahix's avatar Rahix
Browse files

Merge 'take backslashes into account'

See merge request card10/firmware!292
parents f3ae4128 39a8dde8
......@@ -22,6 +22,11 @@ bool pycrd_filename_restricted(const char *path)
path = fname + 1;
fname = strchr(path, '/');
}
fname = strchr(path, '\\');
while (fname) {
path = fname + 1;
fname = strchr(path, '\\');
}
fname = path;
for (int i = 0;
......
Supports Markdown
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