data/strelka-cms/apps/content-manager in strelka-cms-0.0.1.pre.19 vs data/strelka-cms/apps/content-manager in strelka-cms-0.0.1
- old
+ new
@@ -34,10 +34,12 @@
# Pattern for untainting the page path
PAGE_PATH_PATTERN = %r{
\A
(?<path>(?:
[\w\-/] # Allow word characters, slashes, and hyphens
+ |
+ \.(?!\.) # or periods not followed by another period
)*)
(?:\.(?<suffix>html|page))? # optional suffix
\z
}x
@@ -55,10 +57,10 @@
plugin :templating
layout 'layout.tmpl'
templates \
page: 'page.tmpl'
- # Error-handler
+ # Handle errors using a templated view instead of the default text
plugin :fancyerrors
### Configurability API -- configure the CMS class once the config is loaded.
def self::configure( config=nil )