mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-14 19:04:51 +08:00
Fixing fix
--HG-- branch : dev
This commit is contained in:
@@ -83,7 +83,8 @@ namespace Orchard.Core.Routable.Drivers {
|
||||
part.Slug = model.Slug;
|
||||
|
||||
if ( !_routableService.IsSlugValid(part.Slug) ) {
|
||||
if ( ( part.Slug ?? String.Empty ).Trim().EndsWith(".") ) {
|
||||
var slug = (part.Slug ?? String.Empty);
|
||||
if ( slug.StartsWith(".") || slug.EndsWith(".") ) {
|
||||
updater.AddModelError("Routable.Slug", T("The \".\" can't be used around routes."));
|
||||
}
|
||||
else {
|
||||
|
Reference in New Issue
Block a user