Skip to content

Commit 1fef009

Browse files
author
p01
committed
Withstand missing reference URL in the sameOrigin check
1 parent 7446f33 commit 1fef009

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/resource-manager/resource_util.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,9 @@ cls.ResourceUtil.http_status_codes = {
438438

439439
cls.ResourceUtil.sameOrigin = function(reference, url)
440440
{
441+
if (!reference)
442+
return true;
443+
441444
if (reference.protocol == url.protocol)
442445
{
443446
if (reference.host == url.host)

0 commit comments

Comments
 (0)