]> git.datanom.net - qtadmin.git/blobdiff - rest_client.php
prepare for wblistadm server
[qtadmin.git] / rest_client.php
index 15614c5ca6c1d7ebcfe1853346ccc17fb32ddd97..ab8857c358799f2870c13fdabc252b874bf36dc2 100644 (file)
@@ -32,7 +32,7 @@ if (! isset($_SESSION['ticket'])) {
     $response = $util->RESTCall($CFG->wblistadm_url.'/ticket', $data, $cookiesIn = '');
     if ($response['http_code'] >= 200 && $response['http_code'] <= 204) {
         $_SESSION['ticket'] = json_decode($response['content']);
     $response = $util->RESTCall($CFG->wblistadm_url.'/ticket', $data, $cookiesIn = '');
     if ($response['http_code'] >= 200 && $response['http_code'] <= 204) {
         $_SESSION['ticket'] = json_decode($response['content']);
-        $_SESSION['CSRFPreventionToken'] = array('CSRFPreventionToken', $_SESSION['ticket']->data->CSRFPreventionToken);
+        $_SESSION['CSRFPreventionToken'] = array('CSRFPreventionToken: ' . $_SESSION['ticket']->data->CSRFPreventionToken);
         $_SESSION['cookies'] = $response['cookies'];
     }
 } else {
         $_SESSION['cookies'] = $response['cookies'];
     }
 } else {
This page took 0.153711 seconds and 5 git commands to generate.