Fixed security hole
This commit is contained in:
parent
713d94221f
commit
abf903c1ba
1 changed files with 1 additions and 0 deletions
|
|
@ -293,6 +293,7 @@ sub profileField {
|
||||||
$class = shift;
|
$class = shift;
|
||||||
$fieldName = shift;
|
$fieldName = shift;
|
||||||
$value = shift;
|
$value = shift;
|
||||||
|
$value = WebGUI::Macro::negate($value); # Len Kranendonk - 20030701: fixed security hole
|
||||||
if (defined $value) {
|
if (defined $value) {
|
||||||
$class->{_profile}{$fieldName} = $value;
|
$class->{_profile}{$fieldName} = $value;
|
||||||
WebGUI::SQL->write("delete from userProfileData where userId=$class->{_userId} and fieldName=".quote($fieldName));
|
WebGUI::SQL->write("delete from userProfileData where userId=$class->{_userId} and fieldName=".quote($fieldName));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue