mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
Bug 773919 - Cut query string before resolving URI. r=sicking
This commit is contained in:
parent
f159f08b5f
commit
a74b36c7dc
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user