diff --git a/ChangeLog b/ChangeLog index 845eb852b4..a97cf9b774 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Mon Apr 2 10:34:00 2012 eregon + + * string.c (rb_str_start_with, rb_str_end_with): raise an error if + an argument is not convertible to a String. + [ruby-core:40623][Bug #5536] + Mon Apr 2 03:35:25 2012 NARUSE, Yui * lib/webrick/server.rb (WEBrick::GenericServer): close socket only if diff --git a/string.c b/string.c index e16b4291d8..079891a04a 100644 --- a/string.c +++ b/string.c @@ -7197,8 +7197,8 @@ rb_str_start_with(int argc, VALUE *argv, VALUE str) int i; for (i=0; i