Skip to content

Commit 02de96f

Browse files
GarthDBcursoragent
andcommitted
Fix NilClass compatibility shim: add missing taint and untaint methods
Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 84edf90 commit 02de96f

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

_plugins/ruby33_compat.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,14 @@ class NilClass
1919
def tainted?
2020
false
2121
end
22+
23+
def taint
24+
self
25+
end
26+
27+
def untaint
28+
self
29+
end
2230
end
2331

2432
class Object

0 commit comments

Comments
 (0)