mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-10-26 13:08:38 -04:00
1 parent
b8ac2b1d8a
commit
8a6b381154
2 files changed
+4
-4
No files matched your search
@@ -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)),
|
||||
|
||||
+2
-2
@@ -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