Open
Description
Lines 270 to 271 in 9562a6b
This code attempts to determine whether the requested file is in the output directory. If not then it returns a 403 error. However, if the requested file is on a different drive to the output dir, then os.commonpath
will raise a ValueError
, because files on different drives cannot have any common components.
os.commonpath
is used in a similar way in various other places.