Mantis - Quercus
Viewing Issue Advanced Details
3879 minor always 02-05-10 20:15 01-04-13 05:45
nam  
nam  
normal  
closed 4.0.3  
fixed  
none    
none 4.0.34  
0003879: vBulletin 4.0.1 - invalid conditional regexp
(rep by derickso)

http://forum.caucho.com/showthread.php?t=3316 [^]

PHP Code:
Code:

const CLEAN_REGEX = '`([\s/\\\?:@=+$,<>\%"\'\.\r\n\t\x00-\x1f\x7f]|(?(?<!&)#|#(?![0-9]+;))|&(?!#[0-9]+;)|(?<!&#\d|&#\d{2}|&#\d{3}|&#\d{4}|&#\d{5});)`s';

Error:
Code:

Warning: com.caucho.quercus.lib.regexp.IllegalRegexpException: conditional requires number /([\s/\\?:@=+$,<>\%"'\.\r\n\t\x00-\x1f\x7f]|(?(?forum\includes\class_friendly_url.php on line 335

These warnings are being printed out in plain text at the beginning of content that is listed as being gzip encoded, and is thus causing my browser to not be able to decode the content. To even get this error I had to use Wireshark to see what was going on. So this is really two bugs, the above issue with regex, and that warnings should be getting gzipped with the rest of the content.
related to 0004805closed nam Regex 

Notes
(0006140)
nam   
01-04-13 05:45   
php/4eh[4-b]

Fixed for 4.0.34. Added support for lookahead/lookbehind assertions in conditionals.