summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-03-19 09:02:40 +0400
committerAndrew Dolgov <[email protected]>2013-03-19 09:02:40 +0400
commite88c1943577993ffc661e92456b3d20c3b4ce832 (patch)
tree9a0b26c07d1e8d32acd21b03c5322f26961c6efb /include
parent44ae16ce27cf89fa03c49b535492cc14c2f99605 (diff)
print_select, print_select_hash: remove line endings and other special symbols (closes #593)
Diffstat (limited to 'include')
-rw-r--r--include/functions.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/functions.php b/include/functions.php
index 538e43118..43a9270eb 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -461,6 +461,8 @@
else
$sel = "";
+ $v = trim($v);
+
print "<option value=\"$v\" $sel>$v</option>";
}
print "</select>";
@@ -474,6 +476,8 @@
else
$sel = "";
+ $v = trim($v);
+
print "<option $sel value=\"$v\">".$values[$v]."</option>";
}
@@ -3908,7 +3912,7 @@
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');