ticgal / one-timesecret

A One-Time Secret integration with GLPI
https://tic.gal/en/project/a-one-time-secret-integration-share-your-passwords-securely/
GNU Affero General Public License v3.0
3 stars 4 forks source link

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

Closed gitsyncuser closed 2 years ago

gitsyncuser commented 2 years ago

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

 

8c61fdbd-d9d62df8-61cc8c656ab697.21993891

Numero de la peticion de GLPI: 8021
Creado por GitSync en GLPI por Daniel Couso
gitsyncuser commented 2 years ago

This password breaks the query:

Rjk#66s6p=dfN8%2z

Creado por GitSync en GLPI por Daniel Couso