Closed horlabs closed 9 months ago
Thanks, looks good!
Shit, I should have looked closer. There is a bug in your commit: it sets $container
when it should set $fdir
. But thanks all the same.
Oh yes, sorry for that. Happend as i cleaned the code i think.
If
docstore
is set to true in the options.php, hotcrp fails to create thedocs
directory because in_make_fpath_parents
$container
will be<root>/docs
and$fdir
is<root>/docs/
. Therefore, the check in line 470strlen($container) < strlen($fdir)
will be true and the function returns without creating the directory.This fix removes trailing
/
from$fdir
as it is done for$container
and solves this problem.