From: vincent@cubedesigners.com Date: Mon, 12 Mar 2018 17:02:47 +0000 (+0000) Subject: done #1954 @1 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=5526a52e2901a703d871aa25bf57b1109d5976f0;p=cubeextranet.git done #1954 @1 --- 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()) {