You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code is buggy in : ChurchCRM/utils/InputUtils.php
first :
the $size is not mentioned in varible
public static function FilterChar($sInput)
{
$sInput = mb_substr(trim($sInput), 0, $size);
if (get_magic_quotes_gpc()) {
$sInput = stripslashes($sInput);
}
}
So I modify this like :
public static function FilterChar($sInput ,$size=1 )
{
$sInput = mb_substr(trim($sInput), 0, $size);
if (get_magic_quotes_gpc()) {
$sInput = stripslashes($sInput);
} return $sInput;
}
Last, I modify the code at the end :
case 'char':
return mysqli_real_escape_string($cnInfoCentral, self::FilterChar($sInput ,$size ));
You can put the source code in : ChurchCrm/utils/InputUtils.php
You unzip the file InputUtils.php.zip
The text was updated successfully, but these errors were encountered:
phili67
changed the title
Bug to edit Person Properties Group Properties .....
Solution to the Bug to edit Person Properties Group Properties .....
Jul 6, 2017
phili67
changed the title
Solution to the Bug to edit Person Properties Group Properties .....
Solution to the Bug to edit Person Properties Group Properties PDFLabel .....
Jul 6, 2017
The code is buggy in : ChurchCRM/utils/InputUtils.php
first :
public static function FilterChar($sInput)
{
$sInput = mb_substr(trim($sInput), 0, $size);
if (get_magic_quotes_gpc()) {
$sInput = stripslashes($sInput);
}
}
So I modify this like :
public static function FilterChar($sInput ,$size=1 )
{
$sInput = mb_substr(trim($sInput), 0, $size);
if (get_magic_quotes_gpc()) {
$sInput = stripslashes($sInput);
}
return $sInput;
}
Last, I modify the code at the end :
case 'char':
return mysqli_real_escape_string($cnInfoCentral, self::FilterChar($sInput ,$size ));
You can put the source code in : ChurchCrm/utils/InputUtils.php
You unzip the file
InputUtils.php.zip
The text was updated successfully, but these errors were encountered: