Skip to content

Commit

Permalink
Merge pull request #1475 from kareila/1453-search_escape
Browse files Browse the repository at this point in the history
[#1453] FormHTML functions automatically ehtml their arguments
  • Loading branch information
zorkian committed Jul 1, 2015
2 parents 5b4ff4f + 63f0182 commit 2b510d2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions views/search.tt
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@
%]

<br>
[% eq = q | html;
form.textbox( name = "query", maxlength = "255", size = "60", value = eq );
[% form.textbox( name = "query", maxlength = "255", size = "60", value = q );
" ";
form.submit( value = dw.ml( '.button.search' ) );
%]
Expand Down Expand Up @@ -135,7 +134,7 @@
IF result.total > offsetm -%]
<form method="POST" action='[% site.root %]/search?offset=[% offsetm %]'>
[% dw.form_auth %]
[% form.hidden( name = 'query', value = eq );
[% form.hidden( name = 'query', value = q );
form.hidden( name = 'mode', value = su ? su.user : '' );
form.hidden( name = 'sort_by', value = sort_by );
form.hidden( name = 'with_comments', value = wc );
Expand Down

0 comments on commit 2b510d2

Please sign in to comment.