Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErol Guven <erol.guven@appian.com>2022-03-12 02:28:13 +0300
committerErol Guven <erol.guven@appian.com>2022-03-12 02:28:52 +0300
commitd4d78cb874cdd674d201c0af8db5e14c360e065a (patch)
treed677c6ea82f71c9801243234660908531e38dde1 /libraries/routes.php
parent727fa49fb1c9e61afc89724d28713f72e8130ad5 (diff)
Prevent GET requests to add/remove favorite tables
Signed-off-by: Erol Guven <erol.guven@appian.com>
Diffstat (limited to 'libraries/routes.php')
-rw-r--r--libraries/routes.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/libraries/routes.php b/libraries/routes.php
index cfc582b25b..ecf8082a88 100644
--- a/libraries/routes.php
+++ b/libraries/routes.php
@@ -164,10 +164,7 @@ return static function (RouteCollector $routes): void {
$routes->post('/drop-table', [StructureController::class, 'dropTable']);
$routes->post('/empty-form', [StructureController::class, 'emptyForm']);
$routes->post('/empty-table', [StructureController::class, 'emptyTable']);
- $routes->addRoute(['GET', 'POST'], '/favorite-table', [
- StructureController::class,
- 'addRemoveFavoriteTablesAction',
- ]);
+ $routes->post('/favorite-table', [StructureController::class, 'addRemoveFavoriteTablesAction']);
$routes->addRoute(['GET', 'POST'], '/real-row-count', [
StructureController::class,
'handleRealRowCountRequestAction',