LinkStack
LinkStack copied to clipboard
Backslashes in file_put_contents()
I was on 4.8.4. I opted in for the beta version and updated to the latest beta (4.9.0 21) with the built-in update feature.
Later I noticed a strange new file in my file system:
A new file named "resources\views\update.blade.php" appeared at the root of the site.
It turns out this line is the culprit, the backslashes should be forward slashes:
https://github.com/LinkStackOrg/LinkStack/blob/6489a95b75c57f3d5cb6065be8bc715585e5b525/resources/views/components/pre-update.blade.php#L12
The result is an extra file that shouldn't be there:
MAMP PRO 6.9 on macOS 15.5, with Apache and PHP 8.2.13