Skip to content

Commit

Permalink
check on table class
Browse files Browse the repository at this point in the history
  • Loading branch information
alikon committed Apr 18, 2019
1 parent 9eb2aea commit 57d34bd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions libraries/src/Table/Module.php
Expand Up @@ -123,6 +123,14 @@ public function check()
return false;
}

// Prevent to save too large content > 65535
if (strlen($this->content) > 65535)
{
$this->setError(\JTEXT::_('COM_MODULES_FIELD_CONTENT_TOO_LARGE'));

return false;
}

// Check the publish down date is not earlier than publish up.
if ((int) $this->publish_down > 0 && $this->publish_down < $this->publish_up)
{
Expand Down

0 comments on commit 57d34bd

Please sign in to comment.