Dear garryn,
Thank you for corresponding.
There were some problems when I tested this patch.
[FlexSearchForm]
When going from the result page to the next result page, slash is doubly added to the "search strings".
I corrected it as follows.
FlexSearchForm0-7.txt:about 335line
$limit = $modx->recordCount($rs);
$searchString = stripslashes($searchString); //<- add
if($limit>0) {
[UserComments]
The escape doubly hangs to "pagetitle".
I corrected it as follows.
UserComments1-2.txt:about 210line
$doc = $modx->getDocument($docid);
//$title = mysql_escape_string($doc['pagetitle']).' - User comments'; //comment out
$title = $doc['pagetitle'].' - User comments'; //add
$flds = array(
also...
Quote from: garryn at Mar 31, 2008, 03:21 PM
I’ve looked into this and the only way that these snippets could be used for SQL injection is if magic_quotes_gpc is set to ’off’. In the case of the MODx website, magic_quotes_gpc is set to ’on’ so there’s no possible exploit.
"magic_quotes_gpc" set to off in many cases in Japan.
Because it causes the unintelligible sequence of multibyte characters. :’(
Sincerely yours,
soushi