Quote from: mrhaw at May 11, 2010, 08:59 PM
Yes! Using regex I’d think.
I did it without phx, but
with an additional snippet
<? php // snippet 'Leftmenu';
$tmp=$modx->runSnippet('Reflect', array(
'targetID' => 3,
'config'=>'wordpress' ,
'path'=>'3' ,
'tplContainer'=>'reflect_tpl',
'dittoSnippetParameters'=>'parents:3',
'id'=>'wp_',
'getDocuments'=>'1'
));
// echo $tmp; // Reflect's result
$tmp = preg_replace ('/(&)?(wp_)?tags=[^&"]*(&)?(start=0&)?/is','',$tmp);
// clear url string wp_tags=xxx (from ditto) tags=xxx, start=0 (taglinks)
echo $tmp;
// [!Reflect? &config=`wordpress` &targetID=`3` &path=`3` &tplContainer=`reflect_tpl` &dittoSnippetParameters=`parents:3` &wp_tags=`` &id=`wp_` &getDocuments=`1`!]
?>
But two moments:
1.
Similar pages: Ditto and Reflect add to URL links all $_GET parameters (it is one way to make "double pages":
_http://domain.tld/ditto_page?day=... &blabla=5 - this page make a lot reflect’s links with "...&blabla=5"
2.
XSS: page
_http://domain.tld/ditto_page?tags=<a href=http://modxcms.com>modxcms</a> when use [+tags+] in content display link to any page
Any solutions?
ps. Sorry for my English...