Skip to content

Commit f543c48

Browse files
committed
Allow CodeRay to be run when $SAFE=1
1 parent e93aae8 commit f543c48

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/coderay/encoder.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module CodeRay
1010
module Encoders
1111

1212
extend PluginHost
13-
plugin_path File.dirname(__FILE__), 'encoders'
13+
plugin_path File.dirname(__FILE__).untaint, 'encoders'
1414

1515
# = Encoder
1616
#

lib/coderay/scanner.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ module CodeRay
1818
# See PluginHost.
1919
module Scanners
2020
extend PluginHost
21-
plugin_path File.dirname(__FILE__), 'scanners'
21+
plugin_path File.dirname(__FILE__).untaint, 'scanners'
2222

2323

2424
# = Scanner

lib/coderay/style.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ module CodeRay
55
# See Plugin.
66
module Styles
77
extend PluginHost
8-
plugin_path File.dirname(__FILE__), 'styles'
8+
plugin_path File.dirname(__FILE__).untaint, 'styles'
99

1010
# Base class for styles.
1111
#

0 commit comments

Comments
 (0)