From: vincent@cubedesigners.com Date: Wed, 23 Jan 2019 10:52:20 +0000 (+0000) Subject: wip #2540 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=1a44dabebd24c10b719e8aa7f50b048c6d4b5d86;p=cubeextranet.git wip #2540 @0.5 --- diff --git a/inc/ws/Controlleur/class.ws.services.php b/inc/ws/Controlleur/class.ws.services.php index d148674b2..dabc40742 100644 --- a/inc/ws/Controlleur/class.ws.services.php +++ b/inc/ws/Controlleur/class.ws.services.php @@ -803,8 +803,9 @@ class wsServices extends cubeFlashGateway $e = explode('|', $_GET['ref'], 2); $type = trim($e[0]); $ref = trim($e[1]); + $nzref = ltrim($e[1], '0'); - $r = $core->con->select("SELECT * FROM wsref WHERE ref='" . $core->con->escape($ref) . "' AND type='" . $core->con->escape($type) . "'"); + $r = $core->con->select("SELECT * FROM wsref WHERE (ref='" . $core->con->escape($ref) . "' OR ref='" . $core->con->escape($nzref) . "') AND type='" . $core->con->escape($type) . "'"); if ($r->count()) { header('Location: ' . $r->url); }