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:
authorMichal Čihař <michal@cihar.com>2016-01-19 13:31:41 +0300
committerMichal Čihař <michal@cihar.com>2016-01-19 13:31:41 +0300
commit0f119bb3293273c75f7f30d844cf764822cc8eee (patch)
treec8fb57f13df98d22fd1c0499968a2fef9abe28a7 /gis_data_editor.php
parent8e99da9685ee728b39d8e998c61b15e1df17659a (diff)
parent76e003a8cb53115ed301f0e42cc53f735ec14216 (diff)
Merge branch 'QA_4_5'
Diffstat (limited to 'gis_data_editor.php')
-rw-r--r--gis_data_editor.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/gis_data_editor.php b/gis_data_editor.php
index d38db8d319..7268724128 100644
--- a/gis_data_editor.php
+++ b/gis_data_editor.php
@@ -23,6 +23,10 @@ function escape($variable)
require_once 'libraries/common.inc.php';
+if (! isset($_REQUEST['field'])) {
+ PMA\libraries\Util::checkParameters(array('field'));
+}
+
// Get data if any posted
$gis_data = array();
if (PMA_isValid($_REQUEST['gis_data'], 'array')) {
@@ -180,6 +184,9 @@ if ($geom_type == 'GEOMETRYCOLLECTION') {
}
for ($a = 0; $a < $geom_count; $a++) {
+ if (! isset($gis_data[$a])) {
+ continue;
+ }
if ($geom_type == 'GEOMETRYCOLLECTION') {
echo '<br/><br/>';