|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r65466 - website/public_html/beta/common/code
From: dnljms_at_[hidden]
Date: 2010-09-19 13:38:55
Author: danieljames
Date: 2010-09-19 13:38:54 EDT (Sun, 19 Sep 2010)
New Revision: 65466
URL: http://svn.boost.org/trac/boost/changeset/65466
Log:
Fix bug in table removal.
Text files modified:
website/public_html/beta/common/code/boost_filters.php | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
Modified: website/public_html/beta/common/code/boost_filters.php
==============================================================================
--- website/public_html/beta/common/code/boost_filters.php (original)
+++ website/public_html/beta/common/code/boost_filters.php 2010-09-19 13:38:54 EDT (Sun, 19 Sep 2010)
@@ -91,7 +91,7 @@
if(preg_match('@(<table[^<>]*>?)(.*?)(</table>(?:\s*<hr\s*/?>\s*)?)@si',$text,$match,PREG_OFFSET_CAPTURE)
&& strpos($match[2][0], 'boost.png') !== FALSE
) {
- $header = preg_match('@<td[^<>]*>?([^<]*<(h[12]|p).*?)</td>@is', $match[2][2], $table_contents_header);
+ $header = preg_match('@<td[^<>]*>?([^<]*<(h[12]|p).*?)</td>@is', $match[2][0], $table_contents_header);
$head = substr($text, 0, $match[0][1]);
$header = $header ? $table_contents_header[1] : '';
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk