From 042cf8218023be93f5ed709ae777c32fdd37c483 Mon Sep 17 00:00:00 2001 From: Marius Balteanu Date: Thu, 5 Feb 2026 06:13:04 +0000 Subject: [PATCH] Merge r24393 from trunk to 6.1-stable (#43690). git-svn-id: https://svn.redmine.org/redmine/branches/6.1-stable@24395 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redmine/scm/adapters/filesystem_adapter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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