forked from hummypkg/webif
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:
parent
4e42dcf655
commit
a44be5f1ae
@ -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>"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user