diff --git a/Pages/Index.cshtml.cs b/Pages/Index.cshtml.cs
index fd7d0c5..96ebae6 100644
--- a/Pages/Index.cshtml.cs
+++ b/Pages/Index.cshtml.cs
@@ -25,7 +25,7 @@ namespace webmusic.Pages
.Replace("+", "%2B"));
if (path.EndsWith(".m3u"))
path = path.Substring(0, path.Length - 4);
- if (path.Contains(".."))
+ if (path.Contains("/.."))
{
Response.Redirect("/Error");
return;