fix missing url-encoding of from parameter (' 49...' instead of '+49...')

This commit is contained in:
ralf 2022-05-04 15:20:20 +02:00
parent 02096632e6
commit 94eeebbfd6

View File

@ -70,6 +70,12 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET')
die("Missing 'from' GET parameter\n");
}
$from = $_GET['from'];
// fix missing url-encoding of +49...
if (preg_match('/^ [\d]+/', $from))
{
$from[0] = '+';
}
}
else
{
@ -89,4 +95,4 @@ try {
catch (\Exception $e) {
error_log("crm.php: No contact for from=$from found!");
die("No contact for from=$from found!\n");
}
}