diff --git a/ChangeLog b/ChangeLog index 22dfd24d25..560c5ff499 100644 --- a/ChangeLog +++ b/ChangeLog @@ -16,6 +16,7 @@ phpMyAdmin - ChangeLog - issue #18120 Fix bug with numerical tables during renaming database - issue #16851 Fix ($cfg['Order']) default column order doesn't have have any effect since phpMyAdmin 4.2.0 - issue #18112 Fix open base dir warning on git version class +- issue Do not show "Original length undefined" on binary hex columns 5.2.1 (2023-02-07) - issue #17522 Fix case where the routes cache file is invalid diff --git a/doc/conf.py b/doc/conf.py index 3ca2fd4a6b..e78b7dbc0f 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -315,6 +315,4 @@ linkcheck_ignore = [ r'https://authy.com/.*', # Site often changes links and reverts changes (9362bde02d0535a2f8cb74a18797249cb734c4b0) r'https://www.yubico.com/.*', - # Some timeouts and SSL issues: https://github.com/sektioneins/suhosin/issues/119 - r'https://suhosin.org/.*', ] diff --git a/doc/config.rst b/doc/config.rst index 714e7829a2..b0816383c7 100644 --- a/doc/config.rst +++ b/doc/config.rst @@ -1806,6 +1806,8 @@ Generic settings :type: boolean :default: true + .. versionadded:: 4.5.0 + Defines whether to use the parser to find any errors in the query before executing. .. config:option:: $cfg['DefaultForeignKeyChecks'] @@ -1894,6 +1896,13 @@ Generic settings .. seealso:: :ref:`faq2_10` +.. config:option:: $cfg['maxRowPlotLimit'] + + :type: integer + :default: 500 + + Maximum number of rows retrieved for zoom search. + Cookie authentication options ----------------------------- @@ -1965,7 +1974,7 @@ Cookie authentication options * ``Strict`` * ``None`` - .. seealso:: `rfc6265 bis `_ + .. seealso:: `rfc6265 bis `_ .. config:option:: $cfg['LoginCookieRecall'] @@ -2389,6 +2398,13 @@ Navigation panel setup Whether to show events under database in the navigation panel. +.. config:option:: $cfg['NavigationTreeAutoexpandSingleDb'] + + :type: boolean + :default: true + + Whether to expand single database in the navigation tree automatically. + .. config:option:: $cfg['NavigationWidth'] :type: integer @@ -2484,6 +2500,20 @@ Main panel Database structure ------------------ +.. config:option:: $cfg['ShowDbStructureCharset'] + + :type: boolean + :default: false + + Defines whether to show a column displaying the charset for all tables in the database structure page. + +.. config:option:: $cfg['ShowDbStructureComment'] + + :type: boolean + :default: false + + Defines whether to show a column displaying the comments for all tables in the database structure page. + .. config:option:: $cfg['ShowDbStructureCreation'] :type: boolean @@ -2583,6 +2613,19 @@ Browse mode .. versionchanged:: 3.4.0 Since phpMyAdmin 3.4.0 the default value is ``'SMART'``. +.. config:option:: $cfg['DisplayBinaryAsHex'] + + :type: boolean + :default: true + + Defines whether the ":guilabel:`Show binary contents as HEX`" browse option is + ticked by default. + + .. versionadded:: 3.3.0 + .. deprecated:: 4.3.0 + + This setting was removed. + .. config:option:: $cfg['GridEditing'] :type: string @@ -2730,6 +2773,13 @@ Export and import settings * ``custom-no-form`` same as ``custom`` but does not display the option of using quick export +.. config:option:: $cfg['Export']['compression'] + + :type: string + :default: ``'none'`` + + Default export compression method. Possible values are ``'none'``, ``'zip'`` or ``'gzip'``. + .. config:option:: $cfg['Export']['charset'] :type: string @@ -2791,6 +2841,18 @@ Export and import settings Defines charset for import. By default no charset conversion is done assuming UTF-8. +.. config:option:: $cfg['Schema'] + + :type: array + :default: array(...) + +.. config:option:: $cfg['Schema']['format'] + + :type: string + :default: ``'pdf'`` + + Defines the default format for schema export. Possible values are ``'pdf'``, ``'eps'``, ``'dia'`` or ``'svg'``. + Tabs display settings --------------------- @@ -3395,11 +3457,49 @@ Various display setting Repeat the headers every X cells, or 0 to deactivate. +.. config:option:: $cfg['EditInWindow'] + + :type: boolean + :default: true + + .. seealso:: `Feature request to add a pop-up window back `_ + + .. deprecated:: 4.3.0 + + This setting was removed. + +.. config:option:: $cfg['QueryWindowWidth'] + + :type: integer + :default: 550 + + .. deprecated:: 4.3.0 + + This setting was removed. + +.. config:option:: $cfg['QueryWindowHeight'] + + :type: integer + :default: 310 + + .. deprecated:: 4.3.0 + + This setting was removed. + .. config:option:: $cfg['QueryHistoryDB'] :type: boolean :default: false +.. config:option:: $cfg['QueryWindowDefTab'] + + :type: string + :default: ``'sql'`` + + .. deprecated:: 4.3.0 + + This setting was removed. + .. config:option:: $cfg['QueryHistoryMax'] :type: integer diff --git a/doc/faq.rst b/doc/faq.rst index 153fdbe50c..fc5751e759 100644 --- a/doc/faq.rst +++ b/doc/faq.rst @@ -553,41 +553,41 @@ The default values for most Suhosin configuration options will work in most scenarios, however you might want to adjust at least following parameters: -* `suhosin.request.max\_vars `_ should +* `suhosin.request.max\_vars `_ should be increased (eg. 2048) -* `suhosin.post.max\_vars `_ should be +* `suhosin.post.max\_vars `_ should be increased (eg. 2048) -* `suhosin.request.max\_array\_index\_length `_ +* `suhosin.request.max\_array\_index\_length `_ should be increased (eg. 256) -* `suhosin.post.max\_array\_index\_length `_ +* `suhosin.post.max\_array\_index\_length `_ should be increased (eg. 256) -* `suhosin.request.max\_totalname\_length `_ +* `suhosin.request.max\_totalname\_length `_ should be increased (eg. 8192) -* `suhosin.post.max\_totalname\_length `_ should be +* `suhosin.post.max\_totalname\_length `_ should be increased (eg. 8192) -* `suhosin.get.max\_value\_length `_ +* `suhosin.get.max\_value\_length `_ should be increased (eg. 1024) -* `suhosin.sql.bailout\_on\_error `_ +* `suhosin.sql.bailout\_on\_error `_ needs to be disabled (the default) -* `suhosin.log.\* `_ should not +* `suhosin.log.\* `_ should not include :term:`SQL`, otherwise you get big slowdown -* `suhosin.sql.union `_ must be disabled (which is the default). -* `suhosin.sql.multiselect `_ must be disabled (which is the default). -* `suhosin.sql.comment `_ must be disabled (which is the default). To further improve security, we also recommend these modifications: -* `suhosin.executor.include.max\_traversal `_ should be enabled as a mitigation against local file inclusion attacks. We suggest setting this to 2 as ``../`` is used with the ReCaptcha library. -* `suhosin.cookie.encrypt `_ should be enabled. -* `suhosin.executor.disable_emodifier `_ should be enabled. You can also disable the warning using the :config:option:`$cfg['SuhosinDisableWarning']`. @@ -851,8 +851,8 @@ Here are a few points to check: Dorninger for the hint). * In the :file:`php.ini` directive ``arg_separator.input``, a value of ";" will cause this error. Replace it with "&;". -* If you are using `Suhosin `_, you - might want to increase `request limits `_. +* If you are using `Suhosin `_, you + might want to increase `request limits `_. * The directory specified in the :file:`php.ini` directive ``session.save_path`` does not exist or is read-only (this can be caused by `bug in the PHP installer `_). diff --git a/doc/setup.rst b/doc/setup.rst index 1520e9d008..f645a6cf63 100644 --- a/doc/setup.rst +++ b/doc/setup.rst @@ -67,7 +67,7 @@ Red Hat Enterprise Linux Red Hat Enterprise Linux itself and thus derivatives like CentOS don't ship phpMyAdmin, but the Fedora-driven repository -`Extra Packages for Enterprise Linux (EPEL) `_ +`Extra Packages for Enterprise Linux (EPEL) `_ is doing so, if it's `enabled `_. But be aware that the configuration file is maintained in diff --git a/doc/two_factor.rst b/doc/two_factor.rst index b5077185d5..9103f61da1 100644 --- a/doc/two_factor.rst +++ b/doc/two_factor.rst @@ -53,8 +53,8 @@ There are several manufacturers of these tokens, for example: * `youbico FIDO U2F Security Key `_ * `HyperFIDO `_ -* `Trezor Hardware Wallet `_ can act as an `U2F token `_ -* `List of Two Factor Auth (2FA) Dongles `_ +* `Trezor Hardware Wallet `_ can act as an `U2F token `_ +* `List of Two Factor Auth (2FA) Dongles `_ .. _simple2fa: diff --git a/doc/vendors.rst b/doc/vendors.rst index f171ec6b50..3f26572f14 100644 --- a/doc/vendors.rst +++ b/doc/vendors.rst @@ -36,8 +36,8 @@ Specific files LICENSES phpMyAdmin distributed themes contain some content that is under licenses. -- The icons of the `Original` and `pmahomme` themes are from the `Silk Icons `_. -- Some icons of the `Metro` theme are from the `Silk Icons `_. +- The icons of the `Original` and `pmahomme` themes are from the `Silk Icons `_. +- Some icons of the `Metro` theme are from the `Silk Icons `_. - `themes/*/img/b_rename.svg` Is a `Icons8 `_, icon from the `Android L Icon Pack Collection `_. The icon `rename `_. - `themes/metro/img/user.svg` Is a IcoMoon the `user `_ @@ -46,6 +46,6 @@ CC BY 4.0 or GPL Licenses for vendors -------------------- -- Silk Icons are under the `CC BY 2.5 or CC BY 3.0 `_ licenses. +- Silk Icons are under the `CC BY 2.5 or CC BY 3.0 `_ licenses. - `rename` from `Icons8` is under the `"public domain" `_ (CC0 1.0) license. - IcoMoon Free is under `"CC BY 4.0 or GPL" `_. diff --git a/js/src/makegrid.js b/js/src/makegrid.js index c450eba830..eac9548e3f 100644 --- a/js/src/makegrid.js +++ b/js/src/makegrid.js @@ -2184,6 +2184,9 @@ window.makeGrid = function (t, enableResize, enableReorder, enableVisib, enableG // wrap all truncated data cells with span indicating the original length // todo update the original length after a grid edit $(t).find('td.data.truncated:not(:has(span))') + .filter(function () { + return $(this).data('originallength') !== undefined; + }) .wrapInner(function () { return '';