resource-watcher icon indicating copy to clipboard operation
resource-watcher copied to clipboard

Escape single quotes in filenames

Open pecuchet opened this issue 2 years ago • 1 comments

This is a quick fix - the point is to prevent syntax errors in the generated cache file when the filename contains a single quote. Not sure what effect this will have on the ResourceWatcher::calculateHashOfFile() method.

pecuchet avatar Aug 26 '21 15:08 pecuchet

Updated the initial PR: made sure quotes are escaped for both absolute & relative paths and added tests

pecuchet avatar May 05 '22 09:05 pecuchet