1
windy
Re: CBB IMG case insensitive
  • 2008/2/6 3:53

  • windy

  • Just popping in

  • Posts: 9

  • Since: 2007/1/28


Hi I found that adding an i (the modifer for upper and lower case) worked for me.

Frameworks/textsanitizer/plugins/image.php lines 17-22 just add an i to the end after SU as below, tried it with the Frameworks\textsanitizer\module.texsanitizer.php file first but that didn't work for me.

$ts->patterns[] = "/\[img align=(['\"]?)(left|center|right)\\1 width=(['\"]?)([0-9]*)\\3]([^\"\(\)\?\&'<>]*)\[\/img\]/sUi";
$ts->patterns[] = "/\[img align=(['\"]?)(left|center|right)\\1]([^\"\(\)\?\&'<>]*)\[\/img\]/sUi";
$ts->patterns[] = "/\[img width=(['\"]?)([0-9]*)\\1]([^\"\(\)\?\&'<>]*)\[\/img\]/sUi";
$ts->patterns[] = "/\[img]([^\"\(\)\?\&'<>]*)\[\/img\]/sUi";
$ts->patterns[] = "/\[img align=(['\"]?)(left|center|right)\\1 id=(['\"]?)([0-9]*)\\3]([^\"\(\)\?\&'<>]*)\[\/img\]/sUi";
$ts->patterns[] = "/\[img id=(['\"]?)([0-9]*)\\1]([^\"\(\)\?\&'<>]*)\[\/img\]/sUi";

info:http://www.regular-expressions.info/modifiers.html

Hope this helps
Sue x



2
windy
Re: xdonations 1.9- Call to undefined function: getinstance() in...
  • 2007/8/22 22:41

  • windy

  • Just popping in

  • Posts: 9

  • Since: 2007/1/28


Thankyou for this fix worked perfect 2.0.15




TopTop



Login

Who's Online

204 user(s) are online (127 user(s) are browsing Support Forums)


Members: 0


Guests: 204


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits