[wp-trac] [WordPress Trac] #49633: Trim cookie paths

WordPress Trac noreply at wordpress.org
Thu Mar 12 16:00:09 UTC 2020


#49633: Trim cookie paths
------------------------------------+-----------------------------
 Reporter:  Kevin Brent             |      Owner:  (none)
     Type:  defect (bug)            |     Status:  new
 Priority:  normal                  |  Milestone:  Awaiting Review
Component:  Login and Registration  |    Version:  5.3.2
 Severity:  normal                  |   Keywords:  needs-patch
  Focuses:                          |
------------------------------------+-----------------------------
 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:
 [[Image(https://kevinbrent.com/images/1.png)]]

 After several hours of debugging I found this:
 [[Image(https://kevinbrent.com/images/2.png)]]

 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.

 [[Image(https://kevinbrent.com/images/3.png)]]

 There are 3 constants that require this attention.

 {{{
 COOKIEPATH
 }}}


 {{{
 SITECOOKIEPATH
 }}}


 {{{
 PLUGINS_COOKIE_PATH
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/49633>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list