]> _ Git - cubeextranet.git/commitdiff
done #1954 @1
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Mon, 12 Mar 2018 17:02:47 +0000 (17:02 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Mon, 12 Mar 2018 17:02:47 +0000 (17:02 +0000)
inc/ws/Controlleur/class.ws.services.php

index a693c5c1fc0e802b0e8f8228ccfc3a0c7275373b..725b7d3638a700f5b53c55cc665b579e3b386d85 100644 (file)
@@ -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()) {