Skip to content

Sanitizing Query #8

Closed
Closed
@irfannaseefp

Description

@irfannaseefp

When i use rawQuery function with some comparison operators like > , >= etc, it is getting removed because of the FILTER_SANITIZE_STRING filtering.

Eg:$results = $db->rawQuery("SELECT * FROM locations WHERE MIN_IP<= ? AND MAX_IP>= ?",$params);
the query actually reaching to database is SELECT * FROM locations WHERE MIN_IP= ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions