Skip to content

Commit

Permalink
See ezsystems#384: prevent object name overwrite by empty Name post v…
Browse files Browse the repository at this point in the history
…ariable
  • Loading branch information
pkamps committed Aug 16, 2017
1 parent f68c04e commit cab7505
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion extension/ezoe/modules/ezoe/upload.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,15 @@
{
throw new InvalidArgumentException( $attr->validationError() );
}
else
{
$attr->fromString( $postVar );
$attr->store();
}
}
break;
case 'eztext':
case 'ezkeyword':
// Hard to read: this gets executed also for ezstring
$attr->fromString( $postVar );
$attr->store();
break;
Expand Down

0 comments on commit cab7505

Please sign in to comment.