Extract only the column type into pma_type

Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
This commit is contained in:
Kamil Tekiela 2024-12-06 20:57:45 +00:00
parent 80209cad18
commit ea302e792d
3 changed files with 7 additions and 3 deletions

View File

@ -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'])) {

View File

@ -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
-

View File

@ -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">