From 812c21db64b015b8ce3009a5d0faca6da035673c Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Thu, 21 Apr 2005 01:15:43 +0000 Subject: [PATCH] Fix handling of valueless attributes --- includes/Sanitizer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Sanitizer.php b/includes/Sanitizer.php index 9078af9008..e6c56e98b4 100644 --- a/includes/Sanitizer.php +++ b/includes/Sanitizer.php @@ -244,7 +244,7 @@ class Sanitizer { if( !isset( $whitelist[$attribute] ) ) { continue; } - if( $set[2] == '' ) { + if( !isset( $set[2] ) ) { # In XHTML, attributes must have a value. $value = $set[1]; } elseif( $set[3] != '' ) { -- 2.20.1