mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-05-24 16:25:00 -04:00
@@ -90,8 +90,8 @@ class FreshRSS_subscription_Controller extends Minz_ActionController {
|
||||
$values = array(
|
||||
'name' => Minz_Request::param('name', ''),
|
||||
'description' => sanitizeHTML(Minz_Request::param('description', '', true)),
|
||||
'website' => Minz_Request::param('website', ''),
|
||||
'url' => Minz_Request::param('url', ''),
|
||||
'website' => checkUrl(Minz_Request::param('website', '')),
|
||||
'url' => checkUrl(Minz_Request::param('url', '')),
|
||||
'category' => $cat,
|
||||
'pathEntries' => Minz_Request::param('path_entries', ''),
|
||||
'priority' => intval(Minz_Request::param('priority', 0)),
|
||||
|
||||
@@ -69,10 +69,10 @@ function idn_to_puny($url) {
|
||||
}
|
||||
|
||||
function checkUrl($url) {
|
||||
if (empty ($url)) {
|
||||
if ($url == '') {
|
||||
return '';
|
||||
}
|
||||
if (!preg_match ('#^https?://#i', $url)) {
|
||||
if (!preg_match('#^https?://#i', $url)) {
|
||||
$url = 'http://' . $url;
|
||||
}
|
||||
$url = idn_to_puny($url); //PHP bug #53474 IDN
|
||||
|
||||
Reference in New Issue
Block a user