diff options
| author | 2014-09-30 15:02:56 +0200 | |
|---|---|---|
| committer | 2014-09-30 15:02:56 +0200 | |
| commit | edb02c8fefdb292c96d7b37ad4e2c311e9d43b44 (patch) | |
| tree | 2b9d28dc68a87a0603c93e24f927e00ea20169ea /app/Models/Category.php | |
| parent | 46ae0a3f5ada751c9442eca275e15450fad85509 (diff) | |
Move creation of categories in a new Controller
Category names are 255 chars max
Diffstat (limited to 'app/Models/Category.php')
| -rw-r--r-- | app/Models/Category.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Models/Category.php b/app/Models/Category.php index 0a0dbd3ca..e5f6c4334 100644 --- a/app/Models/Category.php +++ b/app/Models/Category.php @@ -61,7 +61,7 @@ class FreshRSS_Category extends Minz_Model { $this->id = $value; } public function _name ($value) { - $this->name = $value; + $this->name = substr(trim($value), 0, 255); } public function _feeds ($values) { if (!is_array ($values)) { |
