mirror of
https://github.com/redmine/redmine.git
synced 2025-11-04 20:35:57 +01:00
Stricter validation of given revisions of repositories (#35085).
Patch by Holger Just. git-svn-id: http://svn.redmine.org/redmine/trunk@20962 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -296,6 +296,15 @@ module Redmine
|
||||
Annotate.new
|
||||
end
|
||||
|
||||
def valid_name?(name)
|
||||
return false unless name.nil? || name.is_a?(String)
|
||||
|
||||
# Mercurials names don't need to be checked further as its CLI
|
||||
# interface is restrictive enough to reject any invalid names on its
|
||||
# own.
|
||||
true
|
||||
end
|
||||
|
||||
class Revision < Redmine::Scm::Adapters::Revision
|
||||
# Returns the readable identifier
|
||||
def format_identifier
|
||||
|
||||
Reference in New Issue
Block a user