Skip to content

Commit

Permalink
Fixed #65 Malformed short URL crash page generation
Browse files Browse the repository at this point in the history
  • Loading branch information
napernik committed Dec 15, 2015
1 parent 7bbd43c commit 03164fb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Composite/Plugins/Routing/Pages/DefaultPageUrlProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,10 @@ private PageUrlData ParseInternalUrl(string relativeUrl, out UrlKind urlKind)
}

string pathInfo = decodedPath.Substring(closingBracketOffset + 1);
if (pathInfo.Length > 0 && pathInfo[0] != '/')
{
return null;
}

bool isUnpublished = pathInfo.Contains(UrlMarker_Unpublished);
if (isUnpublished)
Expand Down

0 comments on commit 03164fb

Please sign in to comment.