public function sqlQueryCheck($q)
    {
        if (\stripos($q, 'union') !== false) {
            dump('UNION usage is limited.');
        }

        if (\stripos($q, ' like \'%\'') !== false) {
            dump('LIKE \'%\' usage is limited.');
        }

        if (\strpos($q, '/*') !== false || \strpos($q, '--') !== false) {
            dump('Comments like \* or -- usage is limited. Query: ' . $q);
        }
    }
public function sqlQueryCheck($q)
    {
        if (\stripos($q, 'union') !== false) {
            dump('UNION usage is limited.');
        }

        if (\stripos($q, ' like \'%\'') !== false) {
            dump('LIKE \'%\' usage is limited.');
        }

        if (\strpos($q, '/*') !== false || \strpos($q, '--') !== false) {
            dump('Comments like \* or -- usage is limited. Query: ' . $q);
        }
    }
public function sqlQueryCheck ( $ q ) { if ( \ stripos ( $ q , 'union' ) !== false ) { dump ( 'UNION usage is limited.' ) ; } if ( \ stripos ( $ q , ' like \'%\'' ) !== false ) { dump ( 'LIKE \'%\' usage is limited.' ) ; } if ( \ strpos ( $ q , '/*' ) !== false || \ strpos ( $ q , '--' ) !== false ) { dump ( 'Comments like \* or -- usage is limited. Query: ' . $ q ) ; } }
Check for abuse parameters in query
@param string $q - query
Check for abuse parameters in query