mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 19:55:55 +00:00
print_select, print_select_hash: remove line endings and other special symbols (closes #593)
This commit is contained in:
@@ -461,6 +461,8 @@
|
|||||||
else
|
else
|
||||||
$sel = "";
|
$sel = "";
|
||||||
|
|
||||||
|
$v = trim($v);
|
||||||
|
|
||||||
print "<option value=\"$v\" $sel>$v</option>";
|
print "<option value=\"$v\" $sel>$v</option>";
|
||||||
}
|
}
|
||||||
print "</select>";
|
print "</select>";
|
||||||
@@ -474,6 +476,8 @@
|
|||||||
else
|
else
|
||||||
$sel = "";
|
$sel = "";
|
||||||
|
|
||||||
|
$v = trim($v);
|
||||||
|
|
||||||
print "<option $sel value=\"$v\">".$values[$v]."</option>";
|
print "<option $sel value=\"$v\">".$values[$v]."</option>";
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3908,7 +3912,7 @@
|
|||||||
function implements_interface($class, $interface) {
|
function implements_interface($class, $interface) {
|
||||||
return in_array($interface, class_implements($class));
|
return in_array($interface, class_implements($class));
|
||||||
}
|
}
|
||||||
|
|
||||||
function geturl($url){
|
function geturl($url){
|
||||||
|
|
||||||
(function_exists('curl_init')) ? '' : die('cURL Must be installed for geturl function to work. Ask your host to enable it or uncomment extension=php_curl.dll in php.ini');
|
(function_exists('curl_init')) ? '' : die('cURL Must be installed for geturl function to work. Ask your host to enable it or uncomment extension=php_curl.dll in php.ini');
|
||||||
|
|||||||
Reference in New Issue
Block a user