phplist3 icon indicating copy to clipboard operation
phplist3 copied to clipboard

Avoid php 8 deprecation for a null attribute value

Open bramley opened this issue 2 years ago • 1 comments

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):

bramley avatar Sep 12 '22 13:09 bramley

yes, seems fine

michield avatar Sep 17 '22 14:09 michield

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

phpListDockerBot avatar Sep 30 '22 11:09 phpListDockerBot

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

phpListDockerBot avatar Oct 20 '22 15:10 phpListDockerBot