1
seolio
IMG tag problem
  • 2008/1/22 20:27

  • seolio

  • Not too shy to talk

  • Posts: 196

  • Since: 2005/11/2


Hi all, I need some quick help please.
I know there has been a post about this before but I could not find it, the IMG tag does not work when in capitals in CBB 3, but it will work in lower case. Big problem being, my members use photobucket which uses upper case.

I know that I only have to add a line of code as I have done it before, but I am not sure which file it is in???

Thanks in advance.

~seolio~

2
christian
Re: IMG tag problem
  • 2008/1/22 20:43

  • christian

  • Just can't stay away

  • Posts: 401

  • Since: 2002/2/24


Hi,

Look the file class/module.textsanitizer.php

Lines 177 to 180 in XOOPS 2.0.18

3
seolio
Re: IMG tag problem
  • 2008/1/22 20:59

  • seolio

  • Not too shy to talk

  • Posts: 196

  • Since: 2005/11/2


Any ideas as to what I need to add, as this is what I have:
//$patterns[] = "/[li](.*)[/li]/sU";
    //$replacements[] = '
  • \1
  • ';
        
    $patterns[] = "/[[Ii][Mm][Gg] [Aa][Ll][Ii][Gg][Nn]=(['"]?)([Ll][Ee][Ff][Tt]|[Cc][Ee][Nn][Tt][Ee][Rr]|[Rr][Ii][Gg][Hh][Tt])\1]([^"()?&'<>]*)[/[Ii][Mm][Gg]]/sU";
        
    $patterns[] = "/[[Ii][Mm][Gg]]([^"()?&'<>]*)[/[Ii][Mm][Gg]]/sU";
        $patterns[] = "/[[Ii][Mm][Gg] [Aa][Ll][Ii][Gg][Nn]=(['"]?)([Ll][Ee][Ff][Tt]|[Cc][Ee][Nn][Tt][Ee][Rr]|[Rr][Ii][Gg][Hh][Tt])\1 [Ii][Dd]=(['"
    ]?)([0-9]*)\3]([^"()?&'<>]*)[/[Ii][Mm][Gg]]/sU";
        
    $patterns[] = "/[[Ii][Mm][Gg] [Ii][Dd]=(['"]?)([0-9]*)\1]([^"()?&'<>]*)[/[Ii][Mm][Gg]]/sU";
        if (
    $allowimage != 1) {
            
    $replacements[] = '\3';
            
    $replacements[] = '\1';
            
    $replacements[] = '.XOOPS_URL.'/image.php?id=\4" target="_blank">\4';
            
    $replacements[] = '.XOOPS_URL.'/image.php?id=\2" target="_blank">\3';
        } else {
            
    $replacements[] = '';
            
    $replacements[] = '';
            
    $replacements[] = '.XOOPS_URL.'/image.php?id=\4" align="\2" alt="\4" />';
            
    $replacements[] = '.XOOPS_URL.'/image.php?id=\2" alt="\3" />';

    Login

    Who's Online

    335 user(s) are online (265 user(s) are browsing Support Forums)


    Members: 0


    Guests: 335


    more...

    Donat-O-Meter

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

    Latest GitHub Commits