From f2c86e7b7f5869ca5a6e8e7787930a71421faf2b Mon Sep 17 00:00:00 2001
From: mattab <matthieu.aubry@gmail.com>
Date: Mon, 25 May 2015 14:09:15 +1200
Subject: [PATCH] Live API: Unsanitize the Action URL in API output The URL are
 sanitized afterwards with SafeDecodeLabel

---
 plugins/Live/Visitor.php | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/plugins/Live/Visitor.php b/plugins/Live/Visitor.php
index 84f1ef8177..1f0df9f4fe 100644
--- a/plugins/Live/Visitor.php
+++ b/plugins/Live/Visitor.php
@@ -307,7 +307,10 @@ class Visitor implements VisitorInterface
             }
 
             // Reconstruct url from prefix
-            $actionDetail['url'] = Tracker\PageUrl::reconstructNormalizedUrl($actionDetail['url'], $actionDetail['url_prefix']);
+            $url = Tracker\PageUrl::reconstructNormalizedUrl($actionDetail['url'], $actionDetail['url_prefix']);
+            $url = Common::unsanitizeInputValue($url);
+
+            $actionDetail['url'] = $url;
             unset($actionDetail['url_prefix']);
 
             // Set the time spent for this action (which is the timeSpentRef of the next action)
-- 
GitLab