mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-24 23:58:54 +01:00
fix missing url-encoding of from parameter (' 49...' instead of '+49...')
This commit is contained in:
parent
eecad5f70f
commit
7c2a3bfe71
@ -70,6 +70,12 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET')
|
|||||||
die("Missing 'from' GET parameter\n");
|
die("Missing 'from' GET parameter\n");
|
||||||
}
|
}
|
||||||
$from = $_GET['from'];
|
$from = $_GET['from'];
|
||||||
|
|
||||||
|
// fix missing url-encoding of +49...
|
||||||
|
if (preg_match('/^ [\d]+/', $from))
|
||||||
|
{
|
||||||
|
$from[0] = '+';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -89,4 +95,4 @@ try {
|
|||||||
catch (\Exception $e) {
|
catch (\Exception $e) {
|
||||||
error_log("crm.php: No contact for from=$from found!");
|
error_log("crm.php: No contact for from=$from found!");
|
||||||
die("No contact for from=$from found!\n");
|
die("No contact for from=$from found!\n");
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user