diff -r e2cb5f1432c8 -r 199b9708f4a2 includes/wikiengine/Tables.php --- a/includes/wikiengine/Tables.php Sun Dec 02 16:00:10 2007 -0500 +++ b/includes/wikiengine/Tables.php Sun Dec 02 16:00:56 2007 -0500 @@ -277,6 +277,13 @@ * @return HTML-encoded text fragment */ function encodeAttribute( $text ) { + + // In Enano 1.0.3, added this cheapo hack to keep ampersands + // from being double-sanitized. Thanks to markybob from #deluge. + $encValue = strtr( $text, array( + '&' => '&' + ) ); + $encValue = htmlspecialchars( $text ); // Whitespace is normalized during attribute decoding,