This project is archived and is in readonly mode.

Changeset [07c69380cf934d7173d116db87e8d8dbb9edd2b2] by Manfred Stienstra

September 3rd, 2009 @ 10:26 PM

Add verify and clean methods to ActiveSupport::Multibyte.

When accepting character input from outside of your application you can't
blindly trust that all strings are properly encoded. With these methods
you can check incoming strings and clean them up if necessary.

Signed-off-by: Michael Koziarski michael@koziarski.com
http://github.com/rails/rails/commit/07c69380cf934d7173d116db87e8d8...

Committed by Manfred Stienstra

  • A activesupport/lib/active_support/multibyte/utils.rb
  • A activesupport/test/multibyte_utils_test.rb
  • M activesupport/lib/active_support/multibyte.rb
  • M activesupport/lib/active_support/multibyte/chars.rb

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>