Function __global->has_escaped_dynamic_sql

Definitions

sources/database_security_filter.php

  • Check all strings within a query were properly escaped (by checking log of what we escaped).
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: bool

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$query string No No required parameter N/A N/A The query

Returns

  • Whether it is all good
  • Type: boolean
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Check all strings within a query were properly escaped (by checking log of what we escaped).
 *
 * @param  string $query The query
 * @return boolean Whether it is all good
 */

function has_escaped_dynamic_sql(string $query) : bool