mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 05:43:55 -07:00
Unqualified function/constant reference and much more
Signed-off-by: Yuriy Pikhtarev <iglix@me.com>
This commit is contained in:
parent
b08f6e898b
commit
78af495048
68 changed files with 273 additions and 277 deletions
|
@ -338,9 +338,7 @@ function extract_search_words($text)
|
|||
$text = preg_replace('/(\w*?)&#?[0-9a-z]+;(\w*?)/iu', '', $text);
|
||||
// Remove URL's ((www|ftp)\.[\w\#!$%&~/.\-;:=,?@а-яА-Я\[\]+]*?)
|
||||
$text = preg_replace('#\b[a-z0-9]+://[\w\#!$%&~/.\-;:=,?@а-яА-Я\[\]+]+(/[0-9a-z\?\.%_\-\+=&/]+)?#u', ' ', $text);
|
||||
$text = str_replace('[url=', ' ', $text);
|
||||
$text = str_replace('?', ' ', $text);
|
||||
$text = str_replace('!', ' ', $text);
|
||||
$text = str_replace(['[url=', '?', '!'], ' ', $text);
|
||||
|
||||
$text = strip_bbcode($text);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue