You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Notifications
You must be signed in to change notification settings
Symfony version(s) affected
6.1, 6.2
Description
If a path has multibyte characters before the last directory separator, the returned path is cut at the wrong position.
How to reproduce
Run the following PHP codes :
Path::getDirectory("D:/Folder/Aééé/Subfolder");
It will return
'D:/Folder/Aééé/Su'
instead of'D:/Folder/Aééé'
Possible Solution
Replace
strrpos
withmb_strrpos
at line 161 in Path.php :Additional Context
No response
The text was updated successfully, but these errors were encountered: