Skip to content

Commit 86103a7

Browse files
committed
Fixed #9
1 parent b1b644c commit 86103a7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

LinkAttributes.body.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
class LinkAttributes {
4-
private $attrsAllowed=array( 'rel', 'rev', 'charset ', 'type', 'hreflang', 'itemprop', 'media', 'title', 'accesskey', 'target' );
4+
private static $attrsAllowed=array( 'rel', 'rev', 'charset ', 'type', 'hreflang', 'itemprop', 'media', 'title', 'accesskey', 'target' );
55

66
private function doExtractAttributes ( &$text, &$attribs ) {
77

@@ -23,7 +23,7 @@ private function doExtractAttributes ( &$text, &$attribs ) {
2323
$pair = explode( '=', $a );
2424

2525
/* Only go ahead if we have a aaa=bbb pattern, and aaa i an allowed attribute */
26-
if ( isset( $pair[1] ) && in_array( $pair[0], $this->attrsAllowed ) ) {
26+
if ( isset( $pair[1] ) && in_array( $pair[0], self::attrsAllowed ) ) {
2727

2828
/* Add to existing attribute, or create a new */
2929
if ( isset( $attribs[$pair[0]] ) ) {

0 commit comments

Comments
 (0)