1
0

* Enhance xhtml cleanup plugin to also work on <param value="..." />

tags.  (garvinhicking)
This commit is contained in:
Garvin Hicking
2009-04-16 08:02:53 +00:00
parent 39aa62b18e
commit 0f1834f2aa
3 changed files with 10 additions and 2 deletions

View File

@@ -3,6 +3,9 @@
Version 1.5 () Version 1.5 ()
------------------------------------------------------------------------ ------------------------------------------------------------------------
* Enhance xhtml cleanup plugin to also work on <param value="..." />
tags. (garvinhicking)
* Changed bookmarklet to work with Chrome, thanks to Oliver * Changed bookmarklet to work with Chrome, thanks to Oliver
Gassner & TextPattern :-) (garvinhicking) Gassner & TextPattern :-) (garvinhicking)

View File

@@ -1273,6 +1273,11 @@ END_IMG_CSS;
*/ */
// Substitute the % stuff and add it to the footer // Substitute the % stuff and add it to the footer
$eventData[$i]['properties']['myvote'] = $myvote;
$eventData[$i]['properties']['points'] = $points;
$eventData[$i]['properties']['votes'] = $votes;
$eventData[$i]['properties']['visits'] = $visits;
$footer .= sprintf($karma_block, $myvote, $points, $votes, $visits, $url); $footer .= sprintf($karma_block, $myvote, $points, $votes, $visits, $url);
} // foreach key in entries } // foreach key in entries
}// End switch on karma voting status }// End switch on karma voting status

View File

@@ -32,7 +32,7 @@ class serendipity_event_xhtmlcleanup extends serendipity_event
$propbag->add('description', PLUGIN_EVENT_XHTMLCLEANUP_DESC); $propbag->add('description', PLUGIN_EVENT_XHTMLCLEANUP_DESC);
$propbag->add('stackable', false); $propbag->add('stackable', false);
$propbag->add('author', 'Garvin Hicking'); $propbag->add('author', 'Garvin Hicking');
$propbag->add('version', '1.5'); $propbag->add('version', '1.6');
$propbag->add('requirements', array( $propbag->add('requirements', array(
'serendipity' => '0.8', 'serendipity' => '0.8',
'smarty' => '2.6.7', 'smarty' => '2.6.7',
@@ -148,7 +148,7 @@ class serendipity_event_xhtmlcleanup extends serendipity_event
// Basic cleanup (core s9y functionality) // Basic cleanup (core s9y functionality)
$eventData[$element] = xhtml_cleanup($eventData[$element]); $eventData[$element] = xhtml_cleanup($eventData[$element]);
$eventData[$element] = preg_replace_callback('@(<img.+/?>)@imsU', array($this, 'clean_tag'), $eventData[$element]); $eventData[$element] = preg_replace_callback('@(<img.+/?>)@imsU', array($this, 'clean_tag'), $eventData[$element]);
$eventData[$element] = preg_replace_callback("@<(a|iframe)(.*)(href|src)=(\"|')([^\"']+)(\"|')@isUm", array($this, 'clean_htmlspecialchars'), $eventData[$element]); $eventData[$element] = preg_replace_callback("@<(a|iframe|param)(.*)(href|src|value)=(\"|')([^\"']+)(\"|')@isUm", array($this, 'clean_htmlspecialchars'), $eventData[$element]);
} }
} }