Skip to content

array_map_op causes "Internal Server Error" #1

@cwells

Description

@cwells

The below config will cause "Internal Server Error" from Nginx 0.8.41:

location ~ ^/(?P<table>\w+)/(?P<id>\d+)/?$ {
    set_form_input    $columns;
    set_form_input    $values;
    array_split       ',' $values to=$array;
    array_map_op      set_quote_sql_str $array;
    array_join        ',' $array to=$sql_args;

    echo $sql_args;
}

Removing the array_map_op line allows it to complete successfully.

Test with:

curl -d "columns=username,password&values=joe,secret" http://localhost/users/1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions