Long or with special characters secrets fails - PHP Warning (2): Trying to access array offset on value of type null in /var/www/html/glpi/marketplace/onetimesecret/inc/secret.class.php at line 106 #8
Failed to create a secret too long. I have created a secret with two passwords and two users and it gave me an error every times. The cause I consider is to create a long secret and with special characters of the password.
php-errors.log
[2021-12-29 17:14:33] glpiphplog.WARNING: *** PHP Warning (2): Trying to access array offset on value of type null in /var/www/html/glpi/marketplace/onetimesecret/inc/secret.class.php at line 106 Backtrace : marketplace/onetimesecret/front/link.form.php:39 PluginOnetimesecretSecret::createSecret()
[2021-12-29 17:23:50] glpiphplog.WARNING: *** PHP Warning (2): Trying to access array offset on value of type null in /var/www/html/glpi/marketplace/onetimesecret/inc/secret.class.php at line 106 Backtrace : marketplace/onetimesecret/front/link.form.php:39 PluginOnetimesecretSecret::createSecret()
Numero de la peticion de GLPI: 8021 Creado por GitSync en GLPI por Daniel Couso
Failed to create a secret too long. I have created a secret with two passwords and two users and it gave me an error every times. The cause I consider is to create a long secret and with special characters of the password.
php-errors.log
[2021-12-29 17:14:33] glpiphplog.WARNING: *** PHP Warning (2): Trying to access array offset on value of type null in /var/www/html/glpi/marketplace/onetimesecret/inc/secret.class.php at line 106
Backtrace :
marketplace/onetimesecret/front/link.form.php:39 PluginOnetimesecretSecret::createSecret()
[2021-12-29 17:23:50] glpiphplog.WARNING: *** PHP Warning (2): Trying to access array offset on value of type null in /var/www/html/glpi/marketplace/onetimesecret/inc/secret.class.php at line 106
Backtrace :
marketplace/onetimesecret/front/link.form.php:39 PluginOnetimesecretSecret::createSecret()