summaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-08-06 13:41:40 +0200
committerBernhard Posselt <nukeawhale@gmail.com>2013-08-06 13:41:40 +0200
commit582dba7e944850d39316a15ef9e3297577fb936f (patch)
tree0d5a4dcd27202295327e49dd3ac17cf24dd423ba /db
parent7f7dc6d86cbbaf251fb7c2dc3a46c94028d79eb6 (diff)
strip all html tags from author and title, fix #287
Diffstat (limited to 'db')
-rw-r--r--db/item.php13
1 files changed, 12 insertions, 1 deletions
diff --git a/db/item.php b/db/item.php
index 6a627d8ff..332fd630e 100644
--- a/db/item.php
+++ b/db/item.php
@@ -74,7 +74,7 @@ class Item extends Entity implements IAPI {
$this->markFieldUpdated('status');
$this->status |= StatusFlag::STARRED;
}
-
+
public function isStarred() {
return ($this->status & StatusFlag::STARRED) === StatusFlag::STARRED;
}
@@ -108,5 +108,16 @@ class Item extends Entity implements IAPI {
);
}
+
+ public function setAuthor($name) {
+ parent::setAuthor(strip_tags($name));
+ }
+
+
+ public function setTitle($title) {
+ parent::setTitle(strip_tags($title));
+ }
+
+
}