summaryrefslogtreecommitdiff
path: root/lib/fuckhtml.php
diff options
context:
space:
mode:
authorlolcat <will@lolcat.ca>2024-03-24 22:31:19 -0400
committerlolcat <will@lolcat.ca>2024-03-24 22:31:19 -0400
commit2976c0a6a4c3ef72784a92867edd7df32ef67d3a (patch)
tree892ab5836726d25eb43f0309e976cac402eb549a /lib/fuckhtml.php
parent81502d4721405e8e4632b37c252d4254426b1728 (diff)
fag protection
Diffstat (limited to 'lib/fuckhtml.php')
-rw-r--r--lib/fuckhtml.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/fuckhtml.php b/lib/fuckhtml.php
index ed1252c..6895fbf 100644
--- a/lib/fuckhtml.php
+++ b/lib/fuckhtml.php
@@ -73,7 +73,7 @@ class fuckhtml{
$attributes = [];
preg_match_all(
- '/([^\/\s\\=]+)(?:\s*=\s*("[^"]*"|\'[^\']*\'|[^\s]*))?/',
+ '/([^\/\s\\=]+)(?:\s*=\s*("[^"]*"|\'[^\']*\'|[^\s]*))?/i',
$starting_tags[2][$i][0],
$regex_attributes
);
@@ -88,7 +88,7 @@ class fuckhtml{
continue;
}
- $attributes[$regex_attributes[1][$k]] =
+ $attributes[strtolower($regex_attributes[1][$k])] =
trim($regex_attributes[2][$k], "'\" \n\r\t\v\x00");
}