]> git.wh0rd.org Git - tt-rss.git/commitdiff
print_select, print_select_hash: remove line endings and other special symbols (close...
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 19 Mar 2013 05:02:40 +0000 (09:02 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 19 Mar 2013 05:02:40 +0000 (09:02 +0400)
include/functions.php

index 538e431183d29eeddd6be8c4015ab76099cab247..43a9270eb9516ae2d316a5386b8b72f8743b8e65 100644 (file)
                         else
                                $sel = "";
 
+                       $v = trim($v);
+
                        print "<option value=\"$v\" $sel>$v</option>";
                }
                print "</select>";
                         else
                                $sel = "";
 
+                       $v = trim($v);
+
                        print "<option $sel value=\"$v\">".$values[$v]."</option>";
                }
 
        function implements_interface($class, $interface) {
                return in_array($interface, class_implements($class));
        }
-       
+
        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');