mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46:17 +00:00
Removing automagic -! sql no-escape string handling. Removing use of Router::stripEscape() from Dispatcher, as this method removed -! from url + post data.
This commit is contained in:
parent
8315b48e77
commit
02f9275e20
2 changed files with 2 additions and 2 deletions
|
@ -297,7 +297,7 @@ class Dispatcher extends Object {
|
|||
$params['action'] = 'index';
|
||||
}
|
||||
if (isset($params['form']['data'])) {
|
||||
$params['data'] = Router::stripEscape($params['form']['data']);
|
||||
$params['data'] = $params['form']['data'];
|
||||
unset($params['form']['data']);
|
||||
}
|
||||
if (isset($_GET)) {
|
||||
|
|
|
@ -1933,7 +1933,7 @@ class DboSource extends DataSource {
|
|||
} else {
|
||||
$data = $this->__quoteFields($key) . ' IN (';
|
||||
}
|
||||
if ($quoteValues || strpos($value[0], '-!') !== 0) {
|
||||
if ($quoteValues) {
|
||||
if (is_object($model)) {
|
||||
$columnType = $model->getColumnType($key);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue