[#84867] [Ruby trunk Bug#14357] thread_safe tests suite segfaults — v.ondruch@...

Issue #14357 has been reported by vo.x (Vit Ondruch).

11 messages 2018/01/15

[#84980] [Ruby trunk Feature#13618][Assigned] [PATCH] auto fiber schedule for rb_wait_for_single_fd and rb_waitpid — hsbt@...

Issue #13618 has been updated by hsbt (Hiroshi SHIBATA).

10 messages 2018/01/23
[#85012] Re: [Ruby trunk Feature#13618][Assigned] [PATCH] auto fiber schedule for rb_wait_for_single_fd and rb_waitpid — Eric Wong <normalperson@...> 2018/01/23

hsbt@ruby-lang.org wrote:

[ruby-core:84868] [Ruby trunk Bug#14358] URI.encode_www_form_component doesn't encode bad chars properly

From: matthew@...
Date: 2018-01-15 11:53:59 UTC
List: ruby-core #84868
Issue #14358 has been reported by phluid61 (Matthew Kerwin).

----------------------------------------
Bug #14358: URI.encode_www_form_component doesn't encode bad chars properly
https://bugs.ruby-lang.org/issues/14358

* Author: phluid61 (Matthew Kerwin)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: 
* Backport: 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: UNKNOWN
----------------------------------------
~~~ruby
URI.encode_www_form_component "\u02DA", Encoding::WINDOWS_1252
#=> "%26730%3B"

# Expected:
#=> "%26%23730%3B"
~~~

As per http://www.w3.org/TR/2013/CR-html5-20130806/forms.html#url-encoded-form-data :

"For each character in the entry's name and value that cannot be expressed using the selected character encoding, replace the character by a string consisting of a U+0026 AMPERSAND character (&), **a "#" (U+0023) character**, one or more ASCII digits representing the Unicode code point of the character in base ten, and finally a ";" (U+003B) character."

---Files--------------------------------
uri_encoding.patch (556 Bytes)


-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next