diff options
| author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-05-25 04:03:20 +0000 |
|---|---|---|
| committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-05-25 04:03:20 +0000 |
| commit | a07d0c39bf8d3774321b0eb6fcf98c6f3160e3a6 (patch) | |
| tree | 07ea0aead92b3fedda26a2de26a0ab651de445e8 /lib | |
| parent | 8cdc370c3d8dd4b97fa8d33a96d6e2079cba0e6d (diff) | |
| download | ruby-a07d0c39bf8d3774321b0eb6fcf98c6f3160e3a6.tar.gz ruby-a07d0c39bf8d3774321b0eb6fcf98c6f3160e3a6.tar.xz ruby-a07d0c39bf8d3774321b0eb6fcf98c6f3160e3a6.zip | |
* 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
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/open-uri.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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: |
