in reply to Re^4: Passing a regex from a CGI HTML form
in thread Passing a regex from a CGI HTML form

Never say never. Security through obscurity is not a way to go through life... things always start out as "it's safe, because it's only me", but then as things expand or others are involved, the gaping security holes are forgotten about and blamo, you're at risk (especially when using eval on user-supplied code).

Replies are listed 'Best First'.
Re^6: Passing a regex from a CGI HTML form
by Linicks (Scribe) on Aug 31, 2016 at 18:41 UTC

    Steve, I appreciate that, but this form just parses data that is junk when copy 'n' pasted. The regex will only ever be applied to the foreach $line... plus, as I say, only me uses the form, or even knows it exists, or even knows what it does...

    Nick

      If you can, I'd suggest using HTTPS and password protecting your CGI.

        Thanks Ron, someone with a bit of sense. I do run over HTTPS and now I have a bit of 'magic' that needs to be met to process the code. See my post at the bottom.

        Nick