diff OrthancServer/OrthancRestApi/OrthancRestSystem.cpp @ 1631:0d074f5f6069

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 21 Sep 2015 13:33:50 +0200
parents ffd23c0104af
children eb8fbcf008b5
line wrap: on
line diff
--- a/OrthancServer/OrthancRestApi/OrthancRestSystem.cpp	Mon Sep 21 13:26:45 2015 +0200
+++ b/OrthancServer/OrthancRestApi/OrthancRestSystem.cpp	Mon Sep 21 13:33:50 2015 +0200
@@ -69,12 +69,14 @@
 
     if (plugins.HasStorageArea())
     {
-      result["StorageAreaPlugin"] = plugins.GetStorageAreaLibrary().GetPath();
+      std::string p = plugins.GetStorageAreaLibrary().GetPath();
+      result["StorageAreaPlugin"] = boost::filesystem::canonical(p).string();
     }
 
     if (plugins.HasDatabaseBackend())
     {
-      result["DatabaseBackendPlugin"] = plugins.GetDatabaseBackendLibrary().GetPath();
+      std::string p = plugins.GetDatabaseBackendLibrary().GetPath();
+      result["DatabaseBackendPlugin"] = boost::filesystem::canonical(p).string();     
     }
 
     call.GetOutput().AnswerJson(result);