From a5fa56e4d6b04a8398f9e2007a6f0c10387490eb Mon Sep 17 00:00:00 2001 From: Alex Warren Date: Tue, 20 Sep 2016 22:07:51 +0100 Subject: [PATCH] UrlEncode WebEditor play URL --- WebEditor/WebEditor/Controllers/EditController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WebEditor/WebEditor/Controllers/EditController.cs b/WebEditor/WebEditor/Controllers/EditController.cs index 423eed759..c583abf43 100644 --- a/WebEditor/WebEditor/Controllers/EditController.cs +++ b/WebEditor/WebEditor/Controllers/EditController.cs @@ -56,7 +56,7 @@ public JsonResult Load(int id, bool simpleMode) return Json(new { tree = editor.GetElementTreeForJson(), editorstyle = editor.Style, - playurl = ConfigurationManager.AppSettings["PlayURL"] + "?id=editor/" + playFilename, + playurl = ConfigurationManager.AppSettings["PlayURL"] + "?id=editor/" + HttpUtility.UrlEncode(playFilename), }, JsonRequestBehavior.AllowGet); }