Revert "Make $civicrm_paths less sensitive to trailing slashes. Add tests."
authoreileen <emcnaughton@wikimedia.org>
Mon, 9 Mar 2020 05:01:36 +0000 (18:01 +1300)
committerSeamus Lee <seamuslee001@gmail.com>
Mon, 9 Mar 2020 20:04:03 +0000 (07:04 +1100)
commitcbcbfd69d34c9895342e3d813a42f97d93dbb76d
tree21c40ae75607f4f5e0d3d4f5c594c668959ce484
parent14e94e8b46edc3fd3a33e0168b8fbdadbffd938e
Revert "Make $civicrm_paths less sensitive to trailing slashes. Add tests."

This is currently causing breakage on wordpress sites where clean urls are not enabled.

Compare the 2 urls below - the top one has an extra (breaking) slash added by this PR.

I propose a quick revert  & patch release followed by 'the right' fix at a slower pace
/wp-admin/admin.php/?page=CiviCRM&q=civicrm%2Fupgrade%2Fqueue%2Fajax%2FrunNext
/wp-admin/admin.php?page=CiviCRM&q=civicrm%2Fupgrade%2Fqueue%2Fajax%2FrunNext

This reverts commit 232fdd3dfac4ea09749d7f178818139514e48e38.
Civi/Core/Paths.php
tests/phpunit/Civi/Core/PathsTest.php [deleted file]