mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-15 22:55:56 +00:00
Merge branch 'master' of http://github.com/gothfox/Tiny-Tiny-RSS
updating from github]
This commit is contained in:
@@ -3788,7 +3788,7 @@
|
||||
* @return string Absolute URL
|
||||
*/
|
||||
function rewrite_relative_url($url, $rel_url) {
|
||||
if (strpos($rel_url, "magnet:") === 0) {
|
||||
if (strpos($rel_url, ":") !== false) {
|
||||
return $rel_url;
|
||||
} else if (strpos($rel_url, "://") !== false) {
|
||||
return $rel_url;
|
||||
@@ -3958,6 +3958,7 @@
|
||||
$reg_qpart = "REGEXP";
|
||||
|
||||
foreach ($filter["rules"] AS $rule) {
|
||||
$rule['reg_exp'] = str_replace('/', '\/', $rule["reg_exp"]);
|
||||
$regexp_valid = preg_match('/' . $rule['reg_exp'] . '/',
|
||||
$rule['reg_exp']) !== FALSE;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user