Commit d266bdd9 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Convert a search pattern to unicode because the user can input utf-8.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1440 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 57f166c3
...@@ -1156,11 +1156,15 @@ onChange="submitAction(this.form,'%s/portal_selections/setReportRoot')"> ...@@ -1156,11 +1156,15 @@ onChange="submitAction(this.form,'%s/portal_selections/setReportRoot')">
for cname in extended_columns: for cname in extended_columns:
if cname[0] in search_columns_id_list: if cname[0] in search_columns_id_list:
list_search = list_search + ( alias = str(cname[2])
"<td class=\"DataB\"><font size=\"-3\"> \ param = params.get(alias,'')
<input name=\"%s\" size= \"8\" value=\"%s\" > \ if type(param) == type(''):
</font></td>\n" % \ param = unicode(param, 'utf-8')
(str(cname[2]) , params.get(str(cname[2]),''))) list_search += """\
<td class="DataB">
<font size="-3"><input name="%s" size="8" value="%s"></font>
</td>
""" % (alias, param)
else: else:
list_search = list_search + ( list_search = list_search + (
"<td class=\"DataB\"></td> ") "<td class=\"DataB\"></td> ")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment