Clean all directories that match the tmp naming pattern at the end of WCFSetup
authorTim Düsterhus <duesterhus@woltlab.com>
Fri, 20 May 2022 09:30:12 +0000 (11:30 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Fri, 20 May 2022 09:30:12 +0000 (11:30 +0200)
commit00df4141f0d246a4c7e8f69055b27d2561577b06
tree276559afeee5bef9be0832a3eaa94cc2df8303a6
parent06e5eea9b6e238b769f95c8884e160b64c72d333
Clean all directories that match the tmp naming pattern at the end of WCFSetup

Since e41dfd007b12baed65ab7679fb679e53bcd2adf5 the temporary directory for
WCFSetup resides in the webroot instead of some system internal temporary
directory. As such temporary files might remain in the webroot and likely will
never be cleaned if the install.php is accessed multiple times before the setup
is completed.

Fix this by deleting all directories that match the pattern for the name of the
temporary directory once the setup is completed successfully.
wcfsetup/install.php
wcfsetup/install/files/lib/system/WCFSetup.class.php