diff --git a/lib/redmine/scm/adapters/filesystem_adapter.rb b/lib/redmine/scm/adapters/filesystem_adapter.rb index ac28436e8..24f3f1b76 100644 --- a/lib/redmine/scm/adapters/filesystem_adapter.rb +++ b/lib/redmine/scm/adapters/filesystem_adapter.rb @@ -111,7 +111,7 @@ module Redmine # Here we do not shell-out, so we do not want quotes. def target(path=nil) # Prevent the use of .. - if path and !/(^|\/)\.\.(\/|$)/.match?(path) + if path and !/(^|[\/\\])\.\.([\/\\]|$)/.match?(path) return "#{self.url}#{without_leading_slash(path)}" end