diff options
Diffstat (limited to 'db/item.php')
-rw-r--r-- | db/item.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/db/item.php b/db/item.php index 332fd630e..1632d5438 100644 --- a/db/item.php +++ b/db/item.php @@ -119,5 +119,12 @@ class Item extends Entity implements IAPI { } + public function setUrl($url) { + $url = trim($url); + if(strpos($url, 'http') === 0) { + parent::setUrl($url); + } + } + } |