|
Boost-Commit : |
From: daniel_james_at_[hidden]
Date: 2008-08-19 18:14:23
Author: danieljames
Date: 2008-08-19 18:14:22 EDT (Tue, 19 Aug 2008)
New Revision: 48231
URL: http://svn.boost.org/trac/boost/changeset/48231
Log:
Stop the attribute stripping code removing the 'closing' slash in image tags.
Text files modified:
website/public_html/beta/common/code/boost_archive.php | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
Modified: website/public_html/beta/common/code/boost_archive.php
==============================================================================
--- website/public_html/beta/common/code/boost_archive.php (original)
+++ website/public_html/beta/common/code/boost_archive.php 2008-08-19 18:14:22 EDT (Tue, 19 Aug 2008)
@@ -358,8 +358,9 @@
'@<img(.*)align="?absmiddle"?[^>]*>@i',
'<img${1} class="inline" />',
$text );
+ /* Remove certain attributes */
$text = preg_replace(
- '@[\s]+(border|cellpadding|cellspacing|width|height|valign|align|frame|rules|naturalsizeflag|background)=[^\s>]+@i',
+ '@[\s]+(border|cellpadding|cellspacing|width|height|valign|align|frame|rules|naturalsizeflag|background)=("[^"]*"?|\'[^\']*\'?|[^\s/>]+)@i',
'',
$text );
$text = preg_replace(
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