We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 24531
    • 213 Posts
    Hey there.

    So i have getResources Call, which takes argument from query string and puts it as "where" parameter, do i need to make some mysql_real_escape_string stuff or getResources sanitizes all parameters? There’s nothing about it in documentation and really don’t want to go and check the source code smiley

    Thanks!
    • Quote from: rav3n at Oct 16, 2010, 07:44 PM

      Hey there.

      So i have getResources Call, which takes argument from query string and puts it as "where" parameter, do i need to make some mysql_real_escape_string stuff or getResources sanitizes all parameters? There’s nothing about it in documentation and really don’t want to go and check the source code smiley

      Thanks!
      MODx Revolution and it’s underlying database layer, xPDO, uses PDO prepared statements for executing queries which automatically sanitizes user input variables. You do not need to do any manual sanitization.
        • 24531
        • 213 Posts
        That’s really cool news! Guess i better go read xpdo docs smiley