Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
3.0.9 problem with $1, $2, etc. match vars not being set for safe text #1734
There seems to be a problem with regex $ variables and safe text:
So for html_escaped strings, the $ variables are not being set. The used to, i.e. the above code worked fine in 3.0.6
Here’s a gist of the problem:
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
Well, from my perspective, it worked in 3.0.6 and now doesn't in 3.0.9. It works with non-safe strings as I showed above. So it's the rails extensions breaking basic gsub() functionality that is very useful and used.....
So saying "there's not much that can be done" doesn't sit well...
It's been changed between 3.0.7 and 3.0.8 because of a security issue.
As gsub transforms the object, it has to be overriden.