phplist3
phplist3 copied to clipboard
Avoid php 8 deprecation for a null attribute value
Description
Using php 8 a deprecation warning is issued when using stripslashes() on a null attribute value
[Sun Sep 11 21:30:33.465091 2022] [php:notice] [pid 3075] [client 127.0.0.1:44934] PHP Deprecated: stripslashes(): Passing null to parameter #1 ($string) of type string is deprecated in /home/duncan/www/lists_3.6.8/admin/inc/userlib.php on line 469, referer: http://strontian/lists/admin/?page=send&id=262&tk=834f3409237077f6681686b186501f4e
The attribute value really is null, so it needs to be converted to a string.
Related Issue
Screenshots (if appropriate):
yes, seems fine
This pull request has been mentioned on phpList Discuss. There might be relevant details there:
https://discuss.phplist.org/t/3-6-9-release-candidate-ready-for-testing/8445/1
This pull request has been mentioned on phpList Discuss. There might be relevant details there:
https://discuss.phplist.org/t/phplist-3-6-9-is-available-for-download/8474/1