Opened 5 years ago
#49633 new defect (bug)
Trim cookie paths
Reported by: | Kevin Brent | Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | 5.3.2 |
Component: | Login and Registration | Keywords: | needs-patch |
Focuses: | Cc: |
Description
I had just migrated a WP website that was very old. I encountered an issue that took several hours to debug.
The site was on PHP 5.6 and I updated everything to use PHP 7.3. At PHP 5.6 this was not an issue, but was at PHP 7.3.
The site seemed to be loading fine. No errors in the PHP error logs. However, I was not able to login to the WP Admin. After I defined error logging true. I get this:
After several hours of debugging I found this:
I was able to fix this in the DB. But, feel that WP could simply trim
spaces from cookie paths since they are not allowed by PHP.
There are 3 constants that require this attention.
COOKIEPATH
SITECOOKIEPATH
PLUGINS_COOKIE_PATH
Attachments (3)
Note: See
TracTickets for help on using
tickets.