From a07d0c39bf8d3774321b0eb6fcf98c6f3160e3a6 Mon Sep 17 00:00:00 2001 From: akr Date: Wed, 25 May 2005 04:03:20 +0000 Subject: * lib/open-uri.rb (OpenURI::Meta::RE_QUOTED_STRING): a content of quoted-string should be zero or more characters. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8518 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ lib/open-uri.rb | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 73687c445..8a31d87a5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Wed May 25 12:59:48 2005 Tanaka Akira + + * lib/open-uri.rb (OpenURI::Meta::RE_QUOTED_STRING): a content of + quoted-string should be zero or more characters. + Tue May 24 23:42:16 2005 Yukihiro Matsumoto * numeric.c (fix_pow): support Fixnum ** Float case directly diff --git a/lib/open-uri.rb b/lib/open-uri.rb index f33dc3890..ce96e5b1c 100644 --- a/lib/open-uri.rb +++ b/lib/open-uri.rb @@ -364,7 +364,7 @@ module OpenURI RE_LWS = /[\r\n\t ]+/n RE_TOKEN = %r{[^\x00- ()<>@,;:\\"/\[\]?={}\x7f]+}n - RE_QUOTED_STRING = %r{"(?:[\r\n\t !#-\[\]-~\x80-\xff]|\\[\x00-\x7f])"}n + RE_QUOTED_STRING = %r{"(?:[\r\n\t !#-\[\]-~\x80-\xff]|\\[\x00-\x7f])*"}n RE_PARAMETERS = %r{(?:;#{RE_LWS}?#{RE_TOKEN}#{RE_LWS}?=#{RE_LWS}?(?:#{RE_TOKEN}|#{RE_QUOTED_STRING})#{RE_LWS}?)*}n def content_type_parse # :nodoc: -- cgit