better solution to cleaning keywords

git-svn-id: file:///root/webif/svn/humax/pkg/src/webif/trunk@212 2a923420-c742-0410-a762-8d5b09965624
This commit is contained in:
hummypkg 2011-06-29 23:57:01 +00:00
parent 4e42dcf655
commit a44be5f1ae
1 changed files with 2 additions and 2 deletions

View File

@ -79,8 +79,8 @@ if {[llength $res] > 0} {
puts "<tr><td>Keyword Searches</td>"
foreach keyword $res {
set kw [string range [lindex $keyword 1] 1 end]
# Attempt to clean the keyword string.
regsub -all {[\000-\037]} $kw "" kw
# Clean the keyword string.
regexp -nocase {^(\w+)} $kw kw
puts "<td><a href=/cgi-bin/epg_search.jim?term=[cgi_quote_url $kw]>$kw
</a></td>"
}