1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* MANIFEST: add test_erb.rb

* lib/erb.rb, test/erb/test_erb.rb: don't forget filename,
          if both filename and safe_level given. [ruby-dev:23050]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5846 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
seki 2004-02-28 01:52:14 +00:00
parent bf08067ded
commit c85e310795
4 changed files with 49 additions and 1 deletions

View file

@ -414,7 +414,7 @@ class ERB
if @safe_level
th = Thread.start {
$SAFE = @safe_level
eval(@src, b)
eval(@src, b, (@filename || '(erb)'), 1)
}
return th.value
else