diff --git a/lib/multiple-results.php b/lib/multiple-results.php
index 00fe582..e990db1 100644
--- a/lib/multiple-results.php
+++ b/lib/multiple-results.php
@@ -93,10 +93,10 @@ if (true === isset($_GET['target']) && false !== strpos($_GET['target'], "filena
for (let i = 0; i < spansArray.length; i++) {
let foundInSelected = false;
const targetURL = spansArray[i].id.replace(/\|/g, "/").toLowerCase();
+ const targetURLDisplay = spansArray[i].id.replace(/\|/g, "/"); // Original filename incl casing
const targetName = targetURL.substring(targetURL.lastIndexOf("/") + 1);
let haveMatch = false;
while ((match = rExp.exec(targetName)) !== null) {
- console.log(match);
haveMatch = true;
}
if (
@@ -120,23 +120,20 @@ if (true === isset($_GET['target']) && false !== strpos($_GET['target'], "filena
if (-1 < userTarget.indexOf("all") || (-1 < userTarget.indexOf("selected") && foundInSelected)) {
resultsDisplay +=
'' +
- targetURL.replace(/\|/g, "/").replace(/_perms/g, "") +
+ targetURLDisplay.replace(/\|/g, "/").replace(/_perms/g, "") +
'\')}, 20);parent.ICEcoder.showHide(\'hide\', parent.document.getElementById(\'blackMask\'))">';
// TODO: get this line working
resultsDisplay +=
- targetURL.replace(/\|/g, "/").replace(/_perms/g, "").replace(//g, "" +
parent.ICEcoder.xssClean(findText).toLowerCase() + "");
resultsDisplay += '
';
-
- resultsDisplay += '