fix #2182 - modifications to address MySQL compatibility issues

This commit is contained in:
Shaun Walker
2022-05-08 22:14:26 -04:00
parent b1d6c35e99
commit 345b0bc95f
14 changed files with 41 additions and 31 deletions

View File

@ -62,6 +62,7 @@ namespace Oqtane.Repository
public UrlMapping GetUrlMapping(int siteId, string url)
{
url = (url.Length > 750) ? url.Substring(0, 750) : url;
var urlMapping = _db.UrlMapping.Where(item => item.SiteId == siteId && item.Url == url).FirstOrDefault();
if (urlMapping == null)
{