Dotclear

Changeset 2727:30bcbc3f4d95


Ignore:
Timestamp:
07/10/14 10:35:26 (11 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
2.6
Message:

Sanitize search request.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/search.php

    r2566 r2727  
    2929if ($q) 
    3030{ 
     31     $q = html::escapeHTML($q); 
     32 
    3133     $params = array(); 
    3234 
     
    9496'<form action="search.php" method="get">'. 
    9597'<div class="fieldset"><h3>'.__('Search options').'</h3>'. 
    96 '<p><label for="q">'.__('Query:').' </label>'.form::field('q',30,255,html::escapeHTML($q)).'</p>'. 
     98'<p><label for="q">'.__('Query:').' </label>'.form::field('q',30,255,$q).'</p>'. 
    9799'<p><label for="qtype1" class="classic">'.form::radio(array('qtype','qtype1'),'p',$qtype == 'p').' '.__('Search in entries').'</label> '. 
    98100'<label for="qtype2" class="classic">'.form::radio(array('qtype','qtype2'),'c',$qtype == 'c').' '.__('Search in comments').'</label></p>'. 
Note: See TracChangeset for help on using the changeset viewer.

Sites map