Skip to content

Commit 996f1be

Browse files
Amendment: Don't try to absolutize urls if already absolute
1 parent ab8aa47 commit 996f1be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Libraries/SmartStore.Core/WebHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,7 @@ public static string GetAbsoluteUrl(string url, HttpRequestBase request)
640640
return url;
641641
}
642642

643-
if (url.Contains("://"))
643+
if (url.Contains("://") || url.StartsWith("//"))
644644
{
645645
return url;
646646
}

0 commit comments

Comments
 (0)