Extract only the column type into pma_type
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
This commit is contained in:
parent
80209cad18
commit
ea302e792d
@ -2312,7 +2312,10 @@ class InsertEdit
|
||||
}
|
||||
|
||||
if ($isUpload && $column['is_blob']) {
|
||||
[$maxUploadSize] = $this->getMaxUploadSize($column['pma_type'], $biggestMaxFileSize);
|
||||
[$maxUploadSize] = $this->getMaxUploadSize(
|
||||
Util::extractColumnSpec($column['pma_type'])['type'],
|
||||
$biggestMaxFileSize
|
||||
);
|
||||
}
|
||||
|
||||
if (! empty($GLOBALS['cfg']['UploadDir'])) {
|
||||
|
||||
@ -21812,7 +21812,7 @@ parameters:
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$columnSpecification of static method PhpMyAdmin\\\\Util\\:\\:extractColumnSpec\\(\\) expects string, mixed given\\.$#"
|
||||
count: 3
|
||||
count: 4
|
||||
path: libraries/classes/InsertEdit.php
|
||||
|
||||
-
|
||||
|
||||
@ -8011,7 +8011,7 @@
|
||||
<InvalidReturnType occurrences="1">
|
||||
<code>string</code>
|
||||
</InvalidReturnType>
|
||||
<MixedArgument occurrences="84">
|
||||
<MixedArgument occurrences="85">
|
||||
<code>$_POST['fields']['multi_edit']</code>
|
||||
<code>$_POST['fields']['multi_edit'][$rownumber][$key]</code>
|
||||
<code>$backupField</code>
|
||||
@ -8095,6 +8095,7 @@
|
||||
<code>$whereClause</code>
|
||||
<code>$whereClause</code>
|
||||
<code>$whereClause</code>
|
||||
<code>Util::extractColumnSpec($column['pma_type'])['type']</code>
|
||||
<code>min(max($column['len'] * 2, 4), $GLOBALS['cfg']['LimitChars'])</code>
|
||||
</MixedArgument>
|
||||
<MixedArgumentTypeCoercion occurrences="7">
|
||||
|
||||
Loading…
Reference in New Issue
Block a user