Skip to content

Commit 6412e04

Browse files
committed
Update modResource.php
Remove dot in final segment when restriction is the preset 'alpha' or 'alphanumeric'
1 parent 33917f8 commit 6412e04

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

core/src/Revolution/modResource.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,10 @@ public static function filterPathSegment(&$xpdo, $segment, array $options = [])
266266
}
267267
}
268268

269+
if (in_array($restrictchars, ['alpha', 'alphanumeric']) && strpos($segment, '.') !== false) {
270+
$segment = str_replace('.', $delimiter, $segment);
271+
}
272+
269273
/* replace one or more space characters with word delimiter */
270274
$segment = preg_replace('/\s+/u', $delimiter, $segment);
271275

0 commit comments

Comments
 (0)