зеркало из https://github.com/github/ruby.git
* file.c (realpath_internal): call rb_secure.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26302 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
3b42acc8c1
Коммит
d60d63ef80
|
@ -1,3 +1,7 @@
|
|||
Tue Jan 12 20:44:14 2010 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* file.c (realpath_internal): call rb_secure.
|
||||
|
||||
Tue Jan 12 16:48:46 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* lib/net/http.rb (Net::HTTP.start): options may not be given.
|
||||
|
|
3
file.c
3
file.c
|
@ -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));
|
||||
|
|
Загрузка…
Ссылка в новой задаче