Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
[BUG] Unable to delete timelapse from UI when filename contains parenthesis #724
After investigating the issue it appears to be related to parenthesis in the filename. If there aren't any parenthesis in the filename the operation works as expected. Running dev branch on raspbian OS wheezy version 7.
I love cookies
I can confirm this bug. I tested it with my Version: 1.2.0-dev-405-gf52afb8-dirty (devel branch).
secure = os.path.join(settings().getBaseFolder("timelapse"), secure_filename(filename))
Updating the line to
secure = os.path.join(settings().getBaseFolder("timelapse"), filename)
will make it work. But i'm not sure if it's the best idea to leave out the secure_filename(). Otherwise, the filenames for timelapses are taken from the *.gcode files. So i think they will allready be safe?!