Skip to content

Commit

Permalink
the lack of two brackets around the path match meant that it was matc…
Browse files Browse the repository at this point in the history
…hing things like /news/ so this will require a new version release as it's that important.
  • Loading branch information
parndt committed Jul 7, 2010
1 parent 4527620 commit 392bd9c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions changelog.md
@@ -1,3 +1,8 @@
## 0.9.7.4 [07 July 2010]

- Fixed critical issue in the i18n routing pattern that was matching prefixes like /news/ as a locale incorrectly. [Philip Arndt]
- [See full list](http://github.com/resolve/refinerycms/compare/0.9.7.3...0.9.7.4)

## 0.9.7.3 [07 July 2010]

- Falls back to default locale when a translation key can not be located in the current locale, only in production mode. [Philip Arndt]
Expand Down
2 changes: 1 addition & 1 deletion refinerycms.gemspec
@@ -1,6 +1,6 @@
Gem::Specification.new do |s|
s.name = %q{refinerycms}
s.version = %q{0.9.7.3}
s.version = %q{0.9.7.4}
s.description = %q{A beautiful open source Ruby on Rails content manager for small business. Easy to extend, easy to use, lightweight and all wrapped up in a super slick UI.}
s.date = %q{2010-07-07}
s.summary = %q{A beautiful open source Ruby on Rails content manager for small business.}
Expand Down
2 changes: 1 addition & 1 deletion vendor/plugins/i18n/lib/i18n_filter.rb
Expand Up @@ -4,7 +4,7 @@ class Locale < Base
def around_recognize(path, env, &block)
if ::Refinery::I18n.enabled?
locale = nil
if path =~ %r{^\/#{::Refinery::I18n.locales.keys.join('|')}\/}
if path =~ %r{^/(#{::Refinery::I18n.locales.keys.join('|')})/}
if path !~ %r{^/(sessions?|admin|refinery|wymiframe)}
path.sub! %r(^/(([a-zA-Z\-_])*)(?=/|$)) do
locale = $1
Expand Down
2 changes: 1 addition & 1 deletion vendor/plugins/refinery/lib/refinery.rb
Expand Up @@ -27,7 +27,7 @@ class Version
MAJOR = 0
MINOR = 9
TINY = 7
BUILD = 3
BUILD = 4

STRING = [MAJOR, MINOR, TINY, BUILD].compact.join('.')

Expand Down

0 comments on commit 392bd9c

Please sign in to comment.