Closed benjaminkohl closed 3 years ago
Just found this myself! You beat the tag going up by a minunte! Checkout: https://github.com/flipboxfactory/saml-sp/releases/tag/2.6.2
Actually. Let me verify this works with your craft version.
Ok ... just double checked.
You should be good to go. Craft CMS version 3.5.18 was the change that requires the new login page where the bug was introduced.
Note to future @dsmrt: Craft CMS version 3.4 to < 3.5.18 has the dashboard string encapsulated with the single quotes appropriately.
Plugin version: 2.6.1 Craft version: 3.5.19.1
In the template
saml-sp/_cp/login
, there is an instance where the UrlHelper::cpUrl helper is being called and the fallback parameter isnull
. The result is a TypeError being thrown when I log out of the control panel because the cpUrl function expects a non-null string value as the parameter.Looking at the Twig template, I see
{{ cpUrl(dashboard) }}
which gets compiled tocraft\helpers\UrlHelper::cpUrl(($context["dashboard"] ?? null))
.Here is the stack trace: