mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +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;
|
part.Slug = model.Slug;
|
||||||
|
|
||||||
if ( !_routableService.IsSlugValid(part.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."));
|
updater.AddModelError("Routable.Slug", T("The \".\" can't be used around routes."));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Reference in New Issue
Block a user