Skip to content

Commit

Permalink
Merge branch 'QA_4_6' into QA_4_6-security
Browse files Browse the repository at this point in the history
  • Loading branch information
nijel committed Jul 29, 2016
2 parents 8dcaae5 + 7d57024 commit 1221b5e
Show file tree
Hide file tree
Showing 8 changed files with 39 additions and 38 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ phpMyAdmin - ChangeLog
- issue #12394 Create view should require a view name
- issue #12391 Message with 'Change password successfully' displayed, but does not take effect
- issue Tighten control on PHP sessions and session cookies
- issue #12409 Re-enable overhead on server databases view
- issue #12414 Fixed rendering of Original theme
- issue #12413 Fixed deleting users in non English locales
- issue #12416 Fixed replication status output in Databases listing
- issue #12303 Avoid typecasting to float when not needed

4.6.3 (2016-06-23)
- issue #12249 Fixed cookie path on Windows
Expand Down
3 changes: 2 additions & 1 deletion libraries/DatabaseInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -871,7 +871,8 @@ public function getDatabasesFull($database = null, $force_stats = false,
SUM(t.INDEX_LENGTH) AS SCHEMA_INDEX_LENGTH,
SUM(t.DATA_LENGTH + t.INDEX_LENGTH)
AS SCHEMA_LENGTH,
SUM(t.DATA_FREE) AS SCHEMA_DATA_FREE';
SUM(IF(t.ENGINE <> \'InnoDB\', t.DATA_FREE, 0))
AS SCHEMA_DATA_FREE';
}
$sql .= '
FROM `information_schema`.SCHEMATA s';
Expand Down
5 changes: 2 additions & 3 deletions libraries/Util.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public static function pow($base, $exp, $use_function = '')
$pow = gmp_strval(gmp_pow($base, $exp));
break;
case 'pow' :
$base = (float) $base;
$base = $base;
$exp = (int) $exp;
$pow = pow($base, $exp);
break;
Expand Down Expand Up @@ -1461,8 +1461,7 @@ public static function formatByteDown($value, $limes = 6, $comma = 0)
$unit = $byteUnits[0];

for ($d = 6, $ex = 15; $d >= 1; $d--, $ex-=3) {
// cast to float to avoid overflow
$unitSize = (float) $li * self::pow(10, $ex);
$unitSize = $li * self::pow(10, $ex);
if (isset($byteUnits[$d]) && $value >= $unitSize) {
// use 1024.0 to avoid integer overflow on 64-bit machines
$value = round($value / (self::pow(1024, $d) / $dh)) /$dh;
Expand Down
12 changes: 6 additions & 6 deletions libraries/controllers/server/ServerDatabasesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -357,9 +357,11 @@ private function _getColumnOrder()
'format' => 'byte',
'footer' => 0,
);
// At this point we were preparing the display of Overhead using DATA_FREE
// but its content does not represent the real overhead in the case
// of InnoDB
$column_order['SCHEMA_DATA_FREE'] = array(
'disp_name' => __('Overhead'),
'format' => 'byte',
'footer' => 0,
);

return $column_order;
}
Expand Down Expand Up @@ -482,9 +484,7 @@ function _buildHtmlForDb(
);

if (mb_strlen($key) > 0
|| (isset($replication_info[$type]['Do_DB'][0])
&& $replication_info[$type]['Do_DB'][0] == ""
&& count($replication_info[$type]['Do_DB']) == 1)
|| count($replication_info[$type]['Do_DB']) == 0
) {
// if ($key != null) did not work for index "0"
$out = Util::getIcon(
Expand Down
42 changes: 16 additions & 26 deletions po/fi.po
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ msgstr ""
"Project-Id-Version: phpMyAdmin 4.6.2-dev\n"
"Report-Msgid-Bugs-To: translators@phpmyadmin.net\n"
"POT-Creation-Date: 2016-05-23 14:29+0200\n"
"PO-Revision-Date: 2016-05-19 19:28+0000\n"
"Last-Translator: Daniel Linjama <daniel@linjama.com>\n"
"Language-Team: Finnish <https://hosted.weblate.org/projects/phpmyadmin/4-6/"
"fi/>\n"
"PO-Revision-Date: 2016-07-29 11:47+0000\n"
"Last-Translator: Juha <jremes@outlook.com>\n"
"Language-Team: Finnish "
"<https://hosted.weblate.org/projects/phpmyadmin/4-6/fi/>\n"
"Language: fi\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 2.7-dev\n"
"X-Generator: Weblate 2.8-dev\n"

#: changelog.php:37 license.php:33
#, php-format
Expand Down Expand Up @@ -3008,8 +3008,8 @@ msgstr "Tietokanta"
#, php-format
msgid "Showing %1$d bookmark (both private and shared)"
msgid_plural "Showing %1$d bookmarks (both private and shared)"
msgstr[0] ""
msgstr[1] ""
msgstr[0] "Näytetään %1$d kirjanmerkki (sekä yksityinen että jaettu)"
msgstr[1] "Näytetään %1$d kirjanmerkkiä (sekä yksityiset että jaetut)"

#: libraries/Console.php:107
msgid "No bookmarks"
Expand Down Expand Up @@ -5413,14 +5413,11 @@ msgid "Highlight pointer"
msgstr "Korosta osoitin"

#: libraries/config/messages.inc.php:47
#, fuzzy
#| msgid ""
#| "Enable [a@http://en.wikipedia.org/wiki/Bzip2]bzip2[/a] compression for "
#| "import operations."
msgid "Enable bzip2 compression for import operations."
msgstr ""
"Käytä tuontitoiminnoissa [a@http://en.wikipedia.org/wiki/Bzip2]bzip2[/a]-"
"pakkausta."
msgstr "Käytä tuontitoiminnoissa bzip2-pakkausta."

#: libraries/config/messages.inc.php:50
msgid "Bzip2"
Expand All @@ -5441,16 +5438,15 @@ msgid "CHAR columns editing"
msgstr "CHAR-sarakkeiden muokkaus"

#: libraries/config/messages.inc.php:58
#, fuzzy
#| msgid ""
#| "Use user-friendly editor for editing SQL queries ([a@http://codemirror."
#| "net/]CodeMirror[/a]) with syntax highlighting and line numbers."
msgid ""
"Use user-friendly editor for editing SQL queries (CodeMirror) with syntax "
"highlighting and line numbers."
msgstr ""
"Käytä käyttäjäystävällistä editoria SQL-kyselyiden muokkaamiseen ([a@http://"
"codemirror.net/]CodeMirror[/a]) syntaksin korostuksella ja rivinumeroilla."
"Käytä käyttäjäystävällistä editoria SQL-kyselyiden (CodeMirror) "
"muokkaamiseen syntaksin korostuksella ja rivinumeroilla."

#: libraries/config/messages.inc.php:62
msgid "Enable CodeMirror"
Expand Down Expand Up @@ -6200,14 +6196,11 @@ msgid "Disable some of the warnings shown by phpMyAdmin."
msgstr "Kytke osa phpMyAdminin näyttämistä varoituksista pois päältä."

#: libraries/config/messages.inc.php:353
#, fuzzy
#| msgid ""
#| "Enable [a@http://en.wikipedia.org/wiki/Gzip]gzip[/a] compression for "
#| "import and export operations."
msgid "Enable gzip compression for import and export operations."
msgstr ""
"Käytä tuonti- ja vientitoiminnoissa [a@http://en.wikipedia.org/wiki/"
"Gzip]gzip[/a]-pakkausta."
msgstr "Käytä tuonti- ja vientitoiminnoissa gzip-pakkausta."

#: libraries/config/messages.inc.php:356
msgid "GZip"
Expand Down Expand Up @@ -6907,16 +6900,15 @@ msgid "Authentication type"
msgstr "Todennustyyppi"

#: libraries/config/messages.inc.php:644
#, fuzzy
#| msgid ""
#| "Leave blank for no [a@https://wiki.phpmyadmin.net/pma/bookmark]bookmark[/"
#| "a] support, suggested: [kbd]pma__bookmark[/kbd]"
msgid ""
"Leave blank for no [doc@bookmarks@]bookmark[/doc] support, suggested: "
"[kbd]pma__bookmark[/kbd]"
msgstr ""
"Jätä tyhjäksi, jos et halua [a@https://wiki.phpmyadmin.net/pma/"
"bookmark]kirjanmerkki[/a]tukea, oletusarvo: [kbd]pma__bookmark[/kbd]"
"Jätä tyhjäksi, jos et halua [doc@bookmarks@]kirjanmerkki[/doc]tukea, "
"oletusarvo: [kbd]pma__bookmark[/kbd]"

#: libraries/config/messages.inc.php:647
msgid "Bookmark table"
Expand Down Expand Up @@ -9097,7 +9089,6 @@ msgstr "Lisätyn rivin tunnus: %1$d"

#. l10n: This is currently used only in Japanese locales
#: libraries/kanji-encoding.lib.php:150
#, fuzzy
#| msgid "None"
msgctxt "None encoding conversion"
msgid "None"
Expand All @@ -9106,7 +9097,7 @@ msgstr "Ei mitään"
#. l10n: This is currently used only in Japanese locales
#: libraries/kanji-encoding.lib.php:161
msgid "Convert to Kana"
msgstr ""
msgstr "Käännä Kana-merkeiksi"

#: libraries/mult_submits.inc.php:329
msgid "Success!"
Expand Down Expand Up @@ -9272,7 +9263,7 @@ msgstr "Romanialainen"

#: libraries/mysql_charsets.lib.php:235
msgid "Sinhalese"
msgstr ""
msgstr "Sinhali"

#: libraries/mysql_charsets.lib.php:238
msgid "Slovak"
Expand Down Expand Up @@ -9317,10 +9308,9 @@ msgid "multilingual"
msgstr "monikielinen"

#: libraries/mysql_charsets.lib.php:265
#, fuzzy
#| msgid "Table name"
msgid "Vietnamese"
msgstr "Taulun nimi"
msgstr "Vietnam"

#: libraries/mysql_charsets.lib.php:293
msgid "Central European"
Expand Down
2 changes: 1 addition & 1 deletion server_privileges.php
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@
&& (! isset($_REQUEST['submit_mult']) || $_REQUEST['submit_mult'] != 'export')
&& ((! isset($_REQUEST['initial']) || $_REQUEST['initial'] === null
|| $_REQUEST['initial'] === '')
|| (isset($_REQUEST['delete']) && $_REQUEST['delete'] === 'Go'))
|| (isset($_REQUEST['delete']) && $_REQUEST['delete'] === __('Go')))
&& ! isset($_REQUEST['showall'])
&& ! isset($_REQUEST['edit_user_group_dialog'])
&& ! isset($_REQUEST['db_specific'])
Expand Down
5 changes: 5 additions & 0 deletions test/classes/controllers/ServerDatabasesControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,11 @@ public function testGetColumnOrder()
'disp_name' => __('Total'),
'format' => 'byte',
'footer' => 0
),
'SCHEMA_DATA_FREE' => array(
'disp_name' => __('Overhead'),
'format' => 'byte',
'footer' => 0
)
),
$method->invoke($ctrl)
Expand Down
3 changes: 2 additions & 1 deletion themes/original/css/common.css.php
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,7 @@
margin: 0.3em 0 0 0;
border: 2px solid;
background-repeat: no-repeat;
clear: both;
<?php
if ($GLOBALS['text_dir'] === 'ltr') { ?>
background-position: 10px 50%;
Expand Down Expand Up @@ -878,7 +879,7 @@
#fieldset_add_user_login label {
float: <?php echo $left; ?>;
display: block;
width: 10em;
width: 15em;
max-width: 100%;
text-align: <?php echo $right; ?>;
padding-<?php echo $right; ?>: 0.5em;
Expand Down

0 comments on commit 1221b5e

Please sign in to comment.