Skip to content

Commit

Permalink
ChangeLog entry for bug 4012 fix
Browse files Browse the repository at this point in the history
Fix another case of parameter incorrectly passed by reference
Adjust functions parameter doc
  • Loading branch information
lem9 committed Jul 20, 2013
1 parent cd421e0 commit 6ac33ad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions ChangeLog
Expand Up @@ -13,6 +13,7 @@ phpMyAdmin - ChangeLog
- bug Incorrect Drizzle 7 detection
- bug #4019 Create database if not exists (export): add an option to the
interface to enable generating CREATE DATABASE and USE (false by default)
- bug #4012 Crash on CSV file import

4.0.4.1 (2013-06-30)
- [security] Global variables scope injection vulnerability (see PMASA-2013-7)
Expand Down
8 changes: 4 additions & 4 deletions libraries/import.lib.php
Expand Up @@ -531,13 +531,13 @@ function PMA_getD($last_cumulative_size)
/**
* Obtains the decimal size of a given cell
*
* @param string &$cell cell content
* @param string $cell cell content
*
* @return array Contains the precision, scale, and full size
* representation of the given decimal cell
* @access public
*/
function PMA_getDecimalSize(&$cell)
function PMA_getDecimalSize($cell)
{
$curr_size = strlen((string)$cell);
$decPos = strpos($cell, ".");
Expand All @@ -557,7 +557,7 @@ function PMA_getDecimalSize(&$cell)
* (NONE or VARCHAR or DECIMAL or INT or BIGINT)
* @param int $curr_type Type of the current cell
* (NONE or VARCHAR or DECIMAL or INT or BIGINT)
* @param string &$cell The current cell
* @param string $cell The current cell
*
* @return string Size of the given cell in the type-appropriate format
* @access public
Expand Down Expand Up @@ -756,7 +756,7 @@ function PMA_detectSize($last_cumulative_size, $last_cumulative_type,
*
* @param int $last_cumulative_type Last cumulative column type
* (VARCHAR or INT or BIGINT or DECIMAL or NONE)
* @param string &$cell String representation of the cell for which
* @param string $cell String representation of the cell for which
* a best-fit type is to be determined
*
* @return int The MySQL type representation
Expand Down

0 comments on commit 6ac33ad

Please sign in to comment.