mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-05-24 16:25:00 -04:00
Use filter_var in guessBaseUrl
See https://github.com/FreshRSS/FreshRSS/issues/906 See https://github.com/FreshRSS/FreshRSS/pull/915/files#r35304704
This commit is contained in:
@@ -103,7 +103,7 @@ class Minz_Request {
|
||||
$url .= substr($path, -1) === '/' ? substr($path, 0, -1) : dirname($path);
|
||||
}
|
||||
|
||||
return $url;
|
||||
return filter_var($url, FILTER_SANITIZE_URL);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user