[pcre-dev] [Bug 1450] New: Incompatibility that stuck websit…

Kezdőlap
Üzenet törlése
Szerző: RedFoxy Darrest
Dátum:  
Címzett: pcre-dev
Tárgy: [pcre-dev] [Bug 1450] New: Incompatibility that stuck website with vBulletin
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=1450
           Summary: Incompatibility that stuck website with vBulletin
           Product: PCRE
           Version: 8.34
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: bug
          Priority: high
         Component: Code
        AssignedTo: ph10@???
        ReportedBy: redfoxy@???
                CC: pcre-dev@???



Hi!
I discover a trouble with a preg_match() in php, after a debug I find that
trouble is present in pcre 8.34 but not in pcre 8.33 to test it you can use the
following php test file:

<?php
$x ='<img src="http://domain.com/attachment.php?attachmentid=36&amp;stc=1"
attachmentid="36" alt="" id="vbattach_36" class="previewthumb">';

if
(preg_match('#class=(\'|"|)([a-z0-9_-\s]+)?\s*previewthumb\s*([a-z0-9_-\s]+)?(\\1)#si',
$x))
{
echo "it's ok";
}
?>

With PCRE 8.34 I got the following error:
Warning: preg_match(): Compilation failed: invalid range in character class at
offset 23 in /path/x.php on line 4

Using PCRE 8.33 it goes.


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email