Projects
openEuler:24.03:SP1:Everything:64G
ruby
_service:tar_scm:backport-0004-CVE-2024-35221.p...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:backport-0004-CVE-2024-35221.patch of Package ruby
From 997470b7b697d267109571d81081453acc73a2f9 Mon Sep 17 00:00:00 2001 From: Samuel Giddins <segiddins@segiddins.me> Date: Wed, 14 Feb 2024 00:50:52 -0800 Subject: [PATCH] [rubygems/rubygems] Commit missing new method https://github.com/rubygems/rubygems/commit/5265b4ce3d --- lib/rubygems/safe_yaml.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/rubygems/safe_yaml.rb b/lib/rubygems/safe_yaml.rb index f668e652be..6a02a48230 100644 --- a/lib/rubygems/safe_yaml.rb +++ b/lib/rubygems/safe_yaml.rb @@ -26,10 +26,14 @@ module SafeYAML ].freeze @aliases_enabled = true - def self.aliases_enabled=(value) + def self.aliases_enabled=(value) # :nodoc: @aliases_enabled = !!value end + def self.aliases_enabled? # :nodoc: + @aliases_enabled + end + def self.safe_load(input) ::Psych.safe_load(input, permitted_classes: PERMITTED_CLASSES, permitted_symbols: PERMITTED_SYMBOLS, aliases: @aliases_enabled) end -- 2.33.0
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2