- Issue created by @matt_paz
- π¨π¦Canada No Sssweat
Looking at the form validate function, I can see there is already a trim there, but unfortunately it does not get set.
We could add
$form_state->setValue('shurly_base', $custom_base_url);
and do away with thetrim()
located in the .module file. However if there is an existing site that happens to have white spaces around it, it will get screwed.So I agree, lets move the trim inside the check/if condition.
- Assigned to No Sssweat
- @no-sssweat opened merge request.
- π¨π¦Canada No Sssweat
Turns out can't add to the conditional with making the conditional significantly more complex.
So I added a 1 liner conditional before it.
- Status changed to Needs review
almost 2 years ago 4:58am 2 February 2023 - Issue was unassigned.
- πΊπΈUnited States matt_paz
Thanks `No Sssweat` -- the updated MR LGTM! Will test next week and circle back.
- Status changed to RTBC
almost 2 years ago 7:57pm 3 February 2023 - πΊπΈUnited States matt_paz
Confirmed (for a site that did not have shurly.settings shurly_base configured).
Deprecation warnings ceased. - π΅πΉPortugal jcnventura
It's called the null coalescing operator: https://www.tutorialspoint.com/php7https://www.tutorialspoint.com/php7/p...
- Status changed to Needs work
almost 2 years ago 1:40pm 7 February 2023 -
jcnventura β
authored 16fa2699 on 8.x-1.x
Issue #3338319 by No Sssweat, matt_paz, jcnventura: [PHP 8] trim():...
-
jcnventura β
authored 16fa2699 on 8.x-1.x
- Status changed to Fixed
almost 2 years ago 1:44pm 7 February 2023 Automatically closed - issue fixed for 2 weeks with no activity.