Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Improves a sentence in guides/security

Changed "... books make this wrong" to "... books get this wrong"
  • Loading branch information...
commit 84cea5a6d140fe1f855b925ceb8df4dd5a8ae557 1 parent 638adfc
@hannesfostie hannesfostie authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  guides/source/security.md
View
2  guides/source/security.md
@@ -481,7 +481,7 @@ A good password is a long alphanumeric combination of mixed cases. As this is qu
INFO: _A common pitfall in Ruby's regular expressions is to match the string's beginning and end by ^ and $, instead of \A and \z._
-Ruby uses a slightly different approach than many other languages to match the end and the beginning of a string. That is why even many Ruby and Rails books make this wrong. So how is this a security threat? Say you wanted to loosely validate a URL field and you used a simple regular expression like this:
+Ruby uses a slightly different approach than many other languages to match the end and the beginning of a string. That is why even many Ruby and Rails books get this wrong. So how is this a security threat? Say you wanted to loosely validate a URL field and you used a simple regular expression like this:
```ruby
/^https?:\/\/[^\n]+$/i
Please sign in to comment.
Something went wrong with that request. Please try again.