Skip to content

Commit

Permalink
Fixed issue #5418: Failing check on fieldnames POST variable
Browse files Browse the repository at this point in the history
git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey_ci@11212 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
c-schmitz committed Oct 19, 2011
1 parent 6d25848 commit 2ef715e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/libraries/Save.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ function run($args) {
// Remove invalid fieldnames from fieldnames array
for($x=count($postedfieldnames)-1;$x>=0;$x--)
{
if (strpos($postedfieldnames[$x],$surveyid.'X')===false)
if (!isset($_SESSION['fieldmap'][$postedfieldnames[$x]]))
{
array_remval($postedfieldnames[$x],$postedfieldnames);
}
Expand Down

0 comments on commit 2ef715e

Please sign in to comment.