diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | file.c | 3 |
2 files changed, 7 insertions, 0 deletions
@@ -1,3 +1,7 @@ +Tue Jan 12 20:44:14 2010 Tanaka Akira <[email protected]> + + * file.c (realpath_internal): call rb_secure. + Tue Jan 12 16:48:46 2010 Nobuyoshi Nakada <[email protected]> * lib/net/http.rb (Net::HTTP.start): options may not be given. @@ -3173,6 +3173,9 @@ realpath_internal(VALUE path, int strict) volatile VALUE unresolved_path; char *unresolved_names; VALUE loopcheck; + + rb_secure(2); + FilePathValue(path); unresolved_path = rb_str_dup_frozen(path); unresolved_names = skiproot(RSTRING_PTR(unresolved_path)); |