We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d61662 commit 58df0fcCopy full SHA for 58df0fc
βCHANGELOG.mdβ
@@ -41,6 +41,8 @@ Please file a bug if you notice a violation of semantic versioning.
41
42
### Fixed
43
44
+- Prevent key duplication in symbolize_hash_keys
45
+
46
### Security
47
48
## [2.3.0-gl] (gitlab fork) - 2025-08-20
βlib/omniauth-ldap/adaptor.rbβ
@@ -246,11 +246,9 @@ def sanitize_hash_values(hash)
246
end
247
248
def symbolize_hash_keys(hash)
249
- hash.keys.each do |key|
250
- hash[key.to_sym] = hash[key]
+ hash.each_with_object({}) do |(key, value), result|
+ result[key.to_sym] = value
251
252
-
253
- hash
254
255
256
0 commit comments