Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
wfpl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added: tem->append(). run.php supports cms. Spaces preserved in pulldown displays
[wfpl.git]
/
encode.php
diff --git
a/encode.php
b/encode.php
index
bad7b4b
..
24a150d
100644
(file)
--- a/
encode.php
+++ b/
encode.php
@@
-59,6
+59,15
@@
function enc_htmlbr($str) {
return $str;
}
return $str;
}
+# Encode for output in html. Spaces converted to
+#
+# Example: <option value="12">~foo.htmlnbsp~</option>
+function enc_htmlnbsp($str) {
+ $str = enc_html($str);
+ $str = str_replace(' ', ' ', $str);
+ return $str;
+}
+
# HTML attribute.
#
# HTML attribute.
#
@@
-234,7
+243,7
@@
function encode_options($selected, $options, $keys_from) {
$out .= '>';
$out .= '>';
- $out .= enc_html($display);
+ $out .= enc_htmlnbsp($display);
$out .= "</option>\n";
}
$out .= "</option>\n";
}