Index: geshifilter.pages.inc =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/geshifilter/geshifilter.pages.inc,v retrieving revision 1.10 diff -u -p -r1.10 geshifilter.pages.inc --- geshifilter.pages.inc 4 Jan 2009 17:44:38 -0000 1.10 +++ geshifilter.pages.inc 24 May 2009 17:11:18 -0000 @@ -112,10 +112,10 @@ function _geshifilter_prepare($format, $ $pattern = '#(<)('. $tags_string .')((\s+[^>]*)*)(>)(.*?)(|$)#s'; break; case GESHIFILTER_BRACKETS_SQUARE: - $pattern = '#(\[)('. $tags_string .')((\s+[^\]]*)*)(\])(.*?)(\[/\2\s*\]|$)#s'; + $pattern = '#((?\]]*)*)([>\]])(.*?)(\1/\2\s*\5|$)#s'; + $pattern = '#((?\]]*)*)([>\]])(.*?)(\1/\2\s*\5|$)#s'; break; } // replace the code container tag brackets