Skip to content

Commit

Permalink
Remove array_flip
Browse files Browse the repository at this point in the history
  • Loading branch information
akirk committed Jan 8, 2025
1 parent 4634fe6 commit 301c5ea
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions includes/constants.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@
'ACTIVITYPUB_MASTODON_HTML_SANITIZER',
array(
'p' => array(),
'span' => array_flip( array( 'class' ) ),
'span' => array( 'class' => true ),
'br' => array(),
'a' => array_flip( array( 'href', 'rel', 'class' ) ),
'a' => array( 'href' => true, 'rel' => true, 'class' => true ),
'del' => array(),
'pre' => array(),
'code' => array(),
Expand All @@ -46,8 +46,8 @@
'i' => array(),
'u' => array(),
'ul' => array(),
'ol' => array_flip( array( 'start', 'reversed' ) ),
'li' => array_flip( array( 'value' ) ),
'ol' => array( 'start' => true, 'reversed' => true ),
'li' => array( 'value' => true ),
'blockquote' => array(),
'h1' => array(),
'h2' => array(),
Expand Down

0 comments on commit 301c5ea

Please sign in to comment.