From 7c2a3bfe71db3247a0cf4c9dbeef28e340fc7ac0 Mon Sep 17 00:00:00 2001 From: ralf Date: Wed, 4 May 2022 15:20:20 +0200 Subject: [PATCH] fix missing url-encoding of from parameter (' 49...' instead of '+49...') --- addressbook/crm.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/addressbook/crm.php b/addressbook/crm.php index 4a453c8b90..54831d61e9 100644 --- a/addressbook/crm.php +++ b/addressbook/crm.php @@ -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"); -} +} \ No newline at end of file