From 5526a52e2901a703d871aa25bf57b1109d5976f0 Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Mon, 12 Mar 2018 17:02:47 +0000 Subject: [PATCH] done #1954 @1 --- inc/ws/Controlleur/class.ws.services.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/inc/ws/Controlleur/class.ws.services.php b/inc/ws/Controlleur/class.ws.services.php index a693c5c1f..725b7d363 100644 --- a/inc/ws/Controlleur/class.ws.services.php +++ b/inc/ws/Controlleur/class.ws.services.php @@ -730,7 +730,8 @@ class wsServices extends cubeFlashGateway { public function wescoRef() { global $core; - $ref = ltrim(substr($this->args['ref'], 4), '0'); + $this->args['ref'] = str_replace(' ', '', $this->args['ref']); + $ref = ltrim(substr($this->args['ref'], strlen($this->args['ref']) - 5), '0'); $r = $core->con->select('SELECT url FROM wescoref WHERE ref="' . $core->con->escape($ref) . '"'); if ($r->count()) { -- 2.39.5