Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Ovid (2709)

  (email not shown publicly)
AOL IM: ovidperl (Add Buddy, Send Message)

Stuff with the Perl Foundation. A couple of patches in the Perl core. A few CPAN modules. That about sums it up.

Journal of Ovid (2709)

Friday September 07, 2007
04:27 AM

Quick Security Fix For the Day

[ #34368 ]

You know, I should really start making a list of quick security fixes for people.

$ ack -al '(?<!#)\s*use.+CGI::Carp\s.*fatalsToBrowser' | wc -l

Or to make it even easier (with typo fix from smylers) :)

$ vim $(ack -al '(?<!#)\s*use.+CGI::Carp\s.*fatalsToBrowser')

You could also do that with perl -pi.bak, but I don't care to automate fixing security issues. You want to look at those directly The above, for example, won't recognize POD. Of course, it also won't recognize CGI::Carp->import('fatalsToBrowser').

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • $ vim $(ack -al '(?<!#)\s*use.+CGI::Carp\s.*fatalsToBrowser' | wc -l)

    That makes Vim edit an empty file whose name, if later saved, will be a count how many files use fatalsToBrowser. (OK, it might not be empty if you happen to have a weird filenaming convention in your current directory — but either way I don't think it's what you meant to suggest.)