]> _ Git - cubeextranet.git/commitdiff
wip #2247 @0.25
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Thu, 4 Oct 2018 12:28:58 +0000 (12:28 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Thu, 4 Oct 2018 12:28:58 +0000 (12:28 +0000)
inc/ws/Controlleur/class.ws.services.php

index 166f750294fe78079941399312d6fbcc3e33fcc3..5a9ea52a57b282e75e76688ef238b973587ead42 100644 (file)
@@ -816,10 +816,14 @@ class wsServices extends cubeFlashGateway
 
                $r = $core->con->select('SELECT url FROM flfref WHERE ref="' . $core->con->escape($this->args['ref']) . '"');
                if ($r->count()) {
-                       header('Location: http://www.flf.fr' . $r->url . '?tkpub=ecatalogue-com-cata2018-170830&tkcmpg=&utm_source=ecatalogue&utm_medium=com&utm_campaign=cata2018&utm_term=170830&utm_content=');
+                       if(strpos($r->url,'http')===0) {
+                               header('Location: ' . $r->url);
+                       }else{
+                               header('Location: https://www.flf.fr' . $r->url);
+                       }
                        exit;
                }
-               $q = 'site:http://www.flf.fr/formation-professionnelle/ "Code stage : ' . $this->args['ref'] . '"';
+               $q = 'site:https://www.flf.fr/formation-professionnelle/ "Code stage : ' . $this->args['ref'] . '"';
                header('Location: https://www.google.fr/search?q=' . urlencode($q) . '&ie=utf-8&oe=utf-8&btnI');
                exit;
        }