includes/wikiengine/Tables.php
changeset 251 a1ccf990db6b
parent 165 d53cc29308f4
child 261 5f1cd51bf1be
--- a/includes/wikiengine/Tables.php	Sat Dec 01 00:35:42 2007 -0500
+++ b/includes/wikiengine/Tables.php	Sat Dec 01 02:39:49 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,