in reply to Re: Special Chars in CGI form variables
in thread Special Chars in CGI form variables

I've tried "print", "warn", you name it, but it still shows up nothing.

The filename is extremely simple "smith_rj.txt" and i was only using the form field, cause it was not to be used by users - so no security issues...
  • Comment on Re^2: Special Chars in CGI form variables

Replies are listed 'Best First'.
Re^3: Special Chars in CGI form variables
by cazz (Pilgrim) on Apr 20, 2005 at 13:49 UTC
    Just because a form variable is "hidden" doesn't mean someone can't edit it. This is a very common misconception regarding CGI programming.
Re^3: Special Chars in CGI form variables
by polettix (Vicar) on Apr 20, 2005 at 13:41 UTC
    Did you print also after the "blah-" prefix addition? Did you try to print something like "($field)" (note parens)? As a last resort, try to print:
    print join "\n", map { "0x" . unpack("h2", ord($_)) } split //, $field; print $/;
    which will give you the hex dump of the string.

    Flavio (perl -e "print(scalar(reverse('ti.xittelop@oivalf')))")

    Don't fool yourself.