From 3a8f7f1d7f3f1b66f47c37b230bc9c53cbdae250 Mon Sep 17 00:00:00 2001 From: akr Date: Sun, 9 Dec 2007 05:12:31 +0000 Subject: * include/ruby/ruby.h (FilePathStringValue): defined. similar to FilePathValue but no taint check. * file.c (rb_get_path_no_checksafe): implementation of FilePathStringValue. (rb_file_s_basename): use FilePathStringValue. (rb_file_s_dirname): ditto. (rb_file_s_extname): ditto. (rb_file_s_split): ditto. (rb_file_join): ditto. * dir.c (file_s_fnmatch): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- include/ruby/ruby.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h index b0b5153b66..d86c990ada 100644 --- a/include/ruby/ruby.h +++ b/include/ruby/ruby.h @@ -326,6 +326,9 @@ void rb_check_safe_str(VALUE); VALUE rb_get_path(VALUE); #define FilePathValue(v) ((v) = rb_get_path(v)) +VALUE rb_get_path_no_checksafe(VALUE); +#define FilePathStringValue(v) ((v) = rb_get_path_no_checksafe(v)) + void rb_secure(int); int rb_safe_level(void); void rb_set_safe_level(int); -- cgit v1.2.3