Fixed security issue

This commit is contained in:
Len Kranendonk 2004-03-19 08:41:03 +00:00
parent 6edaa4b432
commit a3bb4c6dc9

View file

@ -254,7 +254,10 @@ sub www_view {
$var{query} .= " ".join(" ",map("+".$_,split(/\s+/,$var{allWords}))) if ($var{allWords});
$var{query} .= qq{ $var{atLeastOne}} if ($var{atLeastOne});
$var{query} .= " ".join(" ",map("-".$_,split(/\s+/,$var{without}))) if ($var{without});
# Remove macro's from query
$var{query} = WebGUI::Macro::negate($var{query});
# Set some standard vars
$var{submit} = WebGUI::Form::submit({value=>WebGUI::International::get(16, $self->get("namespace"))});
$var{"int.search"} = WebGUI::International::get(16,$self->get("namespace"));