marshsu / timthumb

Automatically exported from code.google.com/p/timthumb
0 stars 0 forks source link

Support for parameters via post #408

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
update function param()

    protected function param($property, $default = ''){
        if (isset ($_GET[$property])) {
            return $_GET[$property];
        } elseif (isset ($_POST[$property])) {
            return $_POST[$property];
        } else {
            return $default;
        }
    }

Original issue reported on code.google.com by jprieton on 1 Nov 2012 at 4:36

GoogleCodeExporter commented 9 years ago
don't understand the need for this?

Original comment by BinaryMoon on 3 Dec 2012 at 7:48