remi icon indicating copy to clipboard operation
remi copied to clipboard

Instead of listing special characters in re, '?' is excluded

Open shoubamzlibap opened this issue 8 years ago • 1 comments

The re_static_file should identify static files in URLS. To my understanding the main goal is to seperate the filename from the query string (seperated by '?'). The current solution lists a couple of special characters that might occur in filenames, but is not complete by far.

Instead of listing all possible special characters that might occur in filenames (especially user generated ones), this version of re_static_file only excludes the question mark, which would sperate the filename from the query string.

shoubamzlibap avatar Feb 07 '17 08:02 shoubamzlibap

@shoubamzlibap I hadn't the time to test this. Have you tested this further? In which case the builtin regex fails?

dddomodossola avatar Aug 13 '17 20:08 dddomodossola