1
rgbgum
Image Tag [img]
  • 2004/8/15 8:30

  • rgbgum

  • Just popping in

  • Posts: 2

  • Since: 2004/8/15


XOOPS 2.0.6

my XOOPS only accepts image tag, [img], in lower case.
How do I make it accept both lower case [img] and upper case [IMG]?

p.s. I searched, and nothing came up.

2
Dave_L
Re: Image Tag [img]
  • 2004/8/15 10:26

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


This is untested, but it should work.

class/module.textsanitizer.php

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


Change each "/sU" to "/isU".

Note that once you make this change, you'll be stuck with having to re-apply it every time you upgrade Xoops. (Unless it gets incorporated as a feature.)

3
rgbgum
Re: Image Tag [img]
  • 2004/8/15 20:12

  • rgbgum

  • Just popping in

  • Posts: 2

  • Since: 2004/8/15


It works!! thank you very much.

Login

Who's Online

520 user(s) are online (57 user(s) are browsing Support Forums)


Members: 0


Guests: 520


more...

Donat-O-Meter

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

Latest GitHub Commits