summaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-08-14 01:57:39 +0200
committerBernhard Posselt <nukeawhale@gmail.com>2013-08-14 01:57:39 +0200
commit2d4806ad4d2ae40c4ee12f9781218a6369b6c25b (patch)
treed40d9c19507a94ade82323c73bddecf025ad466d /db
parent07eb992fa5576d77abafde2688ed90f81060d285 (diff)
also allow magnet urls in article links, fix #313
Diffstat (limited to 'db')
-rw-r--r--db/item.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/item.php b/db/item.php
index 1632d5438..2a903f99e 100644
--- a/db/item.php
+++ b/db/item.php
@@ -121,7 +121,7 @@ class Item extends Entity implements IAPI {
public function setUrl($url) {
$url = trim($url);
- if(strpos($url, 'http') === 0) {
+ if(strpos($url, 'http') === 0 || strpos($url, 'magnet') === 0) {
parent::setUrl($url);
}
}