[phpMyAdmin Git] [phpmyadmin/phpmyadmin] c75166: Revert "Force using POST for SQL query in Util::li...

Michal Čihař michal at cihar.com
Thu Feb 22 23:13:37 CET 2018


  Branch: refs/heads/QA_4_7
  Home:   https://github.com/phpmyadmin/phpmyadmin
  Commit: c75166c3a9776bc035c0291f284ef59270b7a60e
      https://github.com/phpmyadmin/phpmyadmin/commit/c75166c3a9776bc035c0291f284ef59270b7a60e
  Author: Maurício Meneghini Fauth <mauriciofauth at gmail.com>
  Date:   2018-02-22 (Thu, 22 Feb 2018)

  Changed paths:
    M libraries/Util.php
    M test/classes/DisplayResultsTest.php

  Log Message:
  -----------
  Revert "Force using POST for SQL query in Util::linkOrButton"

This reverts commit 44df4a309475479af404506dbd77588acc424637.

Signed-off-by: Maurício Meneghini Fauth <mauriciofauth at gmail.com>


  Commit: be7d5ee738ff70a3fb6cab44b9be8010e68625e9
      https://github.com/phpmyadmin/phpmyadmin/commit/be7d5ee738ff70a3fb6cab44b9be8010e68625e9
  Author: Michal Čihař <michal at cihar.com>
  Date:   2018-02-22 (Thu, 22 Feb 2018)

  Changed paths:
    M js/ajax.js
    M js/functions.js
    M js/gis_data_editor.js
    M js/sql.js
    M libraries/Util.php
    M libraries/common.inc.php

  Log Message:
  -----------
  Simplify handling of long URLs in Util::linkOrButton

We no longer create form, but rather rather tag the link to be handled
as POST on the client side.

This way the code is way simpler without need on any special case
handling on server side.

Fixes #13649

Signed-off-by: Michal Čihař <michal at cihar.com>
(cherry picked from commit 3b9fb2b664632557866feb083b59743ed60d1e22)
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth at gmail.com>


  Commit: f31dfc530b49c9c04f73949545106f328f31c3ce
      https://github.com/phpmyadmin/phpmyadmin/commit/f31dfc530b49c9c04f73949545106f328f31c3ce
  Author: Michal Čihař <michal at cihar.com>
  Date:   2018-02-22 (Thu, 22 Feb 2018)

  Changed paths:
    M test/classes/UtilTest.php

  Log Message:
  -----------
  Add tests for Util::linkOrButton

Signed-off-by: Michal Čihař <michal at cihar.com>
(cherry picked from commit 816c42665af83d8f2652c6c0e9c0d92c63526ae6)
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth at gmail.com>


  Commit: 6f4740e17c07b8cb4b0ec1961460ae036d27ad00
      https://github.com/phpmyadmin/phpmyadmin/commit/6f4740e17c07b8cb4b0ec1961460ae036d27ad00
  Author: Michal Čihař <michal at cihar.com>
  Date:   2018-02-22 (Thu, 22 Feb 2018)

  Changed paths:
    M libraries/Util.php
    M test/classes/DisplayResultsTest.php

  Log Message:
  -----------
  Always use POST for links containing SQL query

This way the SQL queries will not apper in the web server logs.

Signed-off-by: Michal Čihař <michal at cihar.com>
(cherry picked from commit 99e9854473155a5337fc9361d9eba4bae3d30792)
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth at gmail.com>


  Commit: 8d238a3a1a51e34628a08663ada5437948a403a4
      https://github.com/phpmyadmin/phpmyadmin/commit/8d238a3a1a51e34628a08663ada5437948a403a4
  Author: Michal Čihař <michal at cihar.com>
  Date:   2018-02-22 (Thu, 22 Feb 2018)

  Changed paths:
    M js/ajax.js

  Log Message:
  -----------
  Handle data-post with leading ?

This makes it easier to convert existing code.

Issue #13866

Signed-off-by: Michal Čihař <michal at cihar.com>
(cherry picked from commit f059baa2ec9eaf749dc85e0f339018c326818d15)
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth at gmail.com>


  Commit: 35dc6d4f2cd519027958abd9353ba85f822030f4
      https://github.com/phpmyadmin/phpmyadmin/commit/35dc6d4f2cd519027958abd9353ba85f822030f4
  Author: Michal Čihař <michal at cihar.com>
  Date:   2018-02-22 (Thu, 22 Feb 2018)

  Changed paths:
    M js/db_structure.js
    M js/functions.js
    M templates/database/structure/empty_table.phtml

  Log Message:
  -----------
  Adjust table truncate operation to use POST

Issue #13866

Signed-off-by: Michal Čihař <michal at cihar.com>
(cherry picked from commit ff20564ef07f15bda0a6540ac45427a3b6571015)
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth at gmail.com>


  Commit: a20b287f4036916e61d49ae70558c1922ee80666
      https://github.com/phpmyadmin/phpmyadmin/commit/a20b287f4036916e61d49ae70558c1922ee80666
  Author: Michal Čihař <michal at cihar.com>
  Date:   2018-02-22 (Thu, 22 Feb 2018)

  Changed paths:
    M js/db_structure.js
    M templates/database/structure/structure_table_row.phtml

  Log Message:
  -----------
  Adjust table drop operation to use POST

Issue #13866

Signed-off-by: Michal Čihař <michal at cihar.com>
(cherry picked from commit 8332861d62dbe130e3d4bf195707f884d89d0cb2)
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth at gmail.com>


  Commit: 9af081a4b96c6a87af50fcb42e9c42e1847d863f
      https://github.com/phpmyadmin/phpmyadmin/commit/9af081a4b96c6a87af50fcb42e9c42e1847d863f
  Author: Michal Čihař <michal at cihar.com>
  Date:   2018-02-22 (Thu, 22 Feb 2018)

  Changed paths:
    M js/tbl_structure.js
    M templates/table/structure/action_row_in_structure_table.phtml
    M templates/table/structure/actions_in_table_structure.phtml

  Log Message:
  -----------
  Adjust adding table key operations to use POST

Issue #13866

Signed-off-by: Michal Čihař <michal at cihar.com>
(cherry picked from commit 6ee2f1284100b6aa98a3a08dc1f520c48b49ed25)
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth at gmail.com>


  Commit: 8229dabe4686bf9a76a1819f4a97e64083726f7b
      https://github.com/phpmyadmin/phpmyadmin/commit/8229dabe4686bf9a76a1819f4a97e64083726f7b
  Author: Michal Čihař <michal at cihar.com>
  Date:   2018-02-22 (Thu, 22 Feb 2018)

  Changed paths:
    M templates/table/structure/actions_in_table_structure.phtml

  Log Message:
  -----------
  Adjust browsing distinct values to use POST

Issue #13866

Signed-off-by: Michal Čihař <michal at cihar.com>
(cherry picked from commit e7eaea8c86bcb012585e709a3511539df509ffb8)
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth at gmail.com>


  Commit: 590b0ed3377d7ead2b9df8bba59ed6a02f996ba6
      https://github.com/phpmyadmin/phpmyadmin/commit/590b0ed3377d7ead2b9df8bba59ed6a02f996ba6
  Author: Michal Čihař <michal at cihar.com>
  Date:   2018-02-22 (Thu, 22 Feb 2018)

  Changed paths:
    M templates/table/structure/display_partitions.phtml

  Log Message:
  -----------
  Adjust partition manipulations to use POST

Issue #13866

Signed-off-by: Michal Čihař <michal at cihar.com>
(cherry picked from commit 599a981b50ec0c19bb2c827e28edef7106b593e0)
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth at gmail.com>


  Commit: f6bb1901f6eef097a5b827927171eb43cc5fc173
      https://github.com/phpmyadmin/phpmyadmin/commit/f6bb1901f6eef097a5b827927171eb43cc5fc173
  Author: Michal Čihař <michal at cihar.com>
  Date:   2018-02-22 (Thu, 22 Feb 2018)

  Changed paths:
    M templates/table/structure/display_table_stats.phtml
    M templates/table/structure/optional_action_links.phtml

  Log Message:
  -----------
  Adjust optimize table to use POST

Issue #13866

Signed-off-by: Michal Čihař <michal at cihar.com>
(cherry picked from commit 750820519124488c6f2cb546a397de4715c7fa8b)
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth at gmail.com>


  Commit: 19484adb03bfc831b247d75b13d0986eb421a332
      https://github.com/phpmyadmin/phpmyadmin/commit/19484adb03bfc831b247d75b13d0986eb421a332
  Author: Michal Čihař <michal at cihar.com>
  Date:   2018-02-22 (Thu, 22 Feb 2018)

  Changed paths:
    M js/tbl_structure.js
    M templates/table/structure/table_structure_row.phtml

  Log Message:
  -----------
  Adjust field drop to use POST

Issue #13866

Signed-off-by: Michal Čihař <michal at cihar.com>
(cherry picked from commit 613a146e97e34e6b05d7c8c6de15afdb39d8da2b)
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth at gmail.com>


  Commit: 8f9f8aa3b5dba8df743f3dffea3fb5731acb2e38
      https://github.com/phpmyadmin/phpmyadmin/commit/8f9f8aa3b5dba8df743f3dffea3fb5731acb2e38
  Author: Michal Čihař <michal at cihar.com>
  Date:   2018-02-22 (Thu, 22 Feb 2018)

  Changed paths:
    M js/rte.js
    M libraries/rte/rte_list.lib.php

  Log Message:
  -----------
  Adjust RTE oprations to use POST

Issue #13866

Signed-off-by: Michal Čihař <michal at cihar.com>
(cherry picked from commit 2bc87216f0c39e11ea8efd6bedd903aa8ffb51f9)
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth at gmail.com>


  Commit: fc378b0bd3c034515fac6436713e24f24c4b792d
      https://github.com/phpmyadmin/phpmyadmin/commit/fc378b0bd3c034515fac6436713e24f24c4b792d
  Author: Michal Čihař <michal at cihar.com>
  Date:   2018-02-22 (Thu, 22 Feb 2018)

  Changed paths:
    M libraries/operations.lib.php
    M test/libraries/PMA_operations_test.php

  Log Message:
  -----------
  Adjust table operations to use POST

Issue #13866

Signed-off-by: Michal Čihař <michal at cihar.com>
(cherry picked from commit 6b5d535da547600b46b8077d8f69f663374d6e3e)
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth at gmail.com>


  Commit: 1f00c99be950a2173fe5dc1c51410c88c83fe6ff
      https://github.com/phpmyadmin/phpmyadmin/commit/1f00c99be950a2173fe5dc1c51410c88c83fe6ff
  Author: Michal Čihař <michal at cihar.com>
  Date:   2018-02-22 (Thu, 22 Feb 2018)

  Changed paths:
    M js/ajax.js
    M js/db_structure.js
    M js/functions.js
    M js/rte.js
    M js/sql.js
    M js/tbl_structure.js

  Log Message:
  -----------
  Share code for parsing data-post attribute

It can include leading question mark and we should deal with it in all
locations.

Fixes #13913

Signed-off-by: Michal Čihař <michal at cihar.com>
(cherry picked from commit 1fc566fd90d838d35dfa5251f26deb48d15780a7)
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth at gmail.com>


  Commit: 60032ce9de24fe2a329e77b36c20a810f881bace
      https://github.com/phpmyadmin/phpmyadmin/commit/60032ce9de24fe2a329e77b36c20a810f881bace
  Author: Maurício Meneghini Fauth <mauriciofauth at gmail.com>
  Date:   2018-02-22 (Thu, 22 Feb 2018)

  Changed paths:
    M js/functions.js

  Log Message:
  -----------
  Fix getPostData function

dataPost can be undefined

Signed-off-by: Maurício Meneghini Fauth <mauriciofauth at gmail.com>
(cherry picked from commit 367f49b12bb15f7891abeac22c7f5be538e39af1)
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth at gmail.com>


  Commit: 031c832fd7ee3a3dc06169e0d4371def34b5a016
      https://github.com/phpmyadmin/phpmyadmin/commit/031c832fd7ee3a3dc06169e0d4371def34b5a016
  Author: Gemorroj <wapinet at gmail.com>
  Date:   2018-02-22 (Thu, 22 Feb 2018)

  Changed paths:
    M js/tbl_operations.js

  Log Message:
  -----------
  Update tbl_operations.js

fix maintenance operations

Signed-off-by: Gemorroj <wapinet at gmail.com>
(cherry picked from commit b3c9a0c115d6d24f5f94ed2e0a8c2276f4aab8c2)
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth at gmail.com>


  Commit: c21a9cf51fc7ed2f4da293013032e82ccda20a15
      https://github.com/phpmyadmin/phpmyadmin/commit/c21a9cf51fc7ed2f4da293013032e82ccda20a15
  Author: Michal Čihař <michal at cihar.com>
  Date:   2018-02-22 (Thu, 22 Feb 2018)

  Changed paths:
    M js/ajax.js
    M js/db_structure.js
    M js/functions.js
    M js/gis_data_editor.js
    M js/rte.js
    M js/sql.js
    M js/tbl_operations.js
    M js/tbl_structure.js
    M libraries/Util.php
    M libraries/common.inc.php
    M libraries/operations.lib.php
    M libraries/rte/rte_list.lib.php
    M templates/database/structure/empty_table.phtml
    M templates/database/structure/structure_table_row.phtml
    M templates/table/structure/action_row_in_structure_table.phtml
    M templates/table/structure/actions_in_table_structure.phtml
    M templates/table/structure/display_partitions.phtml
    M templates/table/structure/display_table_stats.phtml
    M templates/table/structure/optional_action_links.phtml
    M templates/table/structure/table_structure_row.phtml
    M test/classes/DisplayResultsTest.php
    M test/classes/UtilTest.php
    M test/libraries/PMA_operations_test.php

  Log Message:
  -----------
  Merge pull request #14036 from mauriciofauth/broken-sort

Fix broken sort


Compare: https://github.com/phpmyadmin/phpmyadmin/compare/1562d1c86be5...c21a9cf51fc7


More information about the Git mailing list