Skip to content
This repository has been archived by the owner on Jun 16, 2022. It is now read-only.

Commit

Permalink
Releated to previous commit but for obsolete code - force URLs to low…
Browse files Browse the repository at this point in the history
…ercase when matching
  • Loading branch information
unknown authored and unknown committed Feb 6, 2015
1 parent 757e425 commit 1ec7595
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Repositories/UrlTrackerRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -197,12 +197,12 @@ public static UrlTrackerModel GetUrlTrackerEntryById(int id)
[Obsolete("Remove not found entries also with root id, use other method")]
public static UrlTrackerModel GetNotFoundEntryByUrl(string url)
{
return GetNotFoundEntries().Single(x => x.OldUrl == url);
return GetNotFoundEntries().Single(x => x.OldUrl.ToLower() == url.ToLower());
}

public static UrlTrackerModel GetNotFoundEntryByRootAndUrl(int redirectRootNodeId, string url)
{
return GetNotFoundEntries().Single(x => x.OldUrl == url && x.RedirectRootNodeId == redirectRootNodeId);
return GetNotFoundEntries().Single(x => x.OldUrl.ToLower() == url.ToLower() && x.RedirectRootNodeId == redirectRootNodeId);
}

public static List<UrlTrackerModel> GetUrlTrackerEntries(int? maximumRows, int? startRowIndex, string sortExpression = "", bool _404 = false, bool include410Gone = false, bool showAutoEntries = true, bool showCustomEntries = true, bool showRegexEntries = true, string keyword = "", bool onlyForcedRedirects = false)
Expand Down

0 comments on commit 1ec7595

Please sign in to comment.