PDA

View Full Version : Incorrect Display


Kirby
10-30-2008, 09:21 AM
The regex used to cut body for integrated pages does not take


<body >

(note the space!) into consideration, which generates incorrent HTML in some cases.

Suggested fix:

// Work around for <body> tags that could contain js with >'s
preg_match('#<body\s*(\s+\w+\s*=\s*(("|\').*?(?<!\\\)\3))*>#s', $nonindex, $bmatches);

Brian
10-31-2008, 11:19 AM
Thank you for pointing that out. I'll be sure that's upated in the next release.