From a74b36c7dcc8a5a1225f0c13d024241ce9aad574 Mon Sep 17 00:00:00 2001 From: Masatoshi Kimura Date: Thu, 2 Aug 2012 17:17:34 -0400 Subject: [PATCH] Bug 773919 - Cut query string before resolving URI. r=sicking --- testing/mochitest/dynamic/getMyDirectory.sjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/mochitest/dynamic/getMyDirectory.sjs b/testing/mochitest/dynamic/getMyDirectory.sjs index c154fe0b03c9..1bf6d660b037 100644 --- a/testing/mochitest/dynamic/getMyDirectory.sjs +++ b/testing/mochitest/dynamic/getMyDirectory.sjs @@ -3,7 +3,7 @@ function handleRequest(request, response) var file; getObjectState("SERVER_ROOT", function(serverRoot) { - var ref = request.getHeader("Referer"); + var ref = request.getHeader("Referer").split("?")[0]; // 8 is "https://".length which is the longest string before the host. var pathStart = ref.indexOf("/", 8) + 1; var pathEnd = ref.lastIndexOf("/") + 1;