3 ms·
I'm very glad to hear about the regex exceptions. Ruby's weird behavior for ^ and $ is something I never would have guessed, since Perl, Java, and Python treat
by pjungwir 14y ago
I'm very glad to hear about the regex exceptions. Ruby's weird behavior for ^ and $ is something I never would have guessed, since Perl, Java, and Python treat it differently. I bet there are a lot Rails apps out there with this insecurity.
I'd also like to see secret tokens extracted from source code to something like an ENV var. I know a lot of Rails dev shops have a "Rails template" They use to start new projects, so beyond the Github issues the article mentions, I wonder how many projects have to same copy/pasted secret token.
I also appreciate the warnings about off-site redirects and hrefs with untrusted input.
- gkop 14y ago> I wonder how many projects have to same copy/pasted secret token Worse is the number of apps with the token in public GitHub: https://github.com/search?q=%27Application.config.secret_token+%3D%27+1+extension%3Arb+path%3Aconfig%2Finitializers&type=Code&ref=searchresults https://github.com/search?q=%27Application.config.secret_tok...
- pekk 14y agoPeople still screw up by failing to anchor expressions in Perl and Python, however.