[SMS STOP] accepte également le mot stop en minuscule

This commit is contained in:
Romain Guerrero 2016-03-22 13:40:14 +01:00
parent 34ac15272d
commit a03787bc53

View file

@ -246,7 +246,7 @@
$text = $content_file[1];
//On gère les SMS STOP
if (trim($text) == 'STOP')
if (strtoupper(trim($text)) == 'STOP')
{
echo 'STOP SMS detected ' . $number . "\n";
$this->wlog('STOP SMS detected ' . $number);