From 8f8e5558a27dd789fa998ff9219ae72ca27611ea Mon Sep 17 00:00:00 2001 From: Philip Ridout Date: Sat, 16 Jun 2012 01:12:08 +0100 Subject: [PATCH] A fix for issues: http://support.openlp.org/issues/703 http://support.openlp.org/issues/677 The bug was being caused because we were passing file paths for images and presentations. In windows a back slash is used. This needed escaping --- openlp/plugins/remotes/html/openlp.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/openlp/plugins/remotes/html/openlp.js b/openlp/plugins/remotes/html/openlp.js index e1a425860..470185a44 100644 --- a/openlp/plugins/remotes/html/openlp.js +++ b/openlp/plugins/remotes/html/openlp.js @@ -245,6 +245,9 @@ window.OpenLP = { } else { $.each(data.results.items, function (idx, value) { + if (typeof value[0] !== "number"){ + value[0] = OpenLP.escapeString(value[0]) + } ul.append($("
  • ").append($("").attr("href", "#options") .attr("data-rel", "dialog").attr("value", value[0]) .click(OpenLP.showOptions).text(value[1])));