mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-23 22:45:20 +00:00
build: Upgrade phan-taint-check-plugin from 1.5.x to 2.0.1
Change-Id: I909d3cfa726d7b68b5a580baf00f6746d4689404
This commit is contained in:
parent
eb37c893ea
commit
bceb94ca2a
|
@ -18,6 +18,6 @@
|
|||
]
|
||||
},
|
||||
"extra": {
|
||||
"phan-taint-check-plugin": "1.5.0"
|
||||
"phan-taint-check-plugin": "2.0.1"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1073,11 +1073,11 @@ class Cite {
|
|||
* @return string
|
||||
*/
|
||||
private function normalizeKey( $key ) {
|
||||
$key = Sanitizer::escapeIdForAttribute( $key );
|
||||
$key = preg_replace( '/__+/', '_', $key );
|
||||
$key = Sanitizer::safeEncodeAttribute( $key );
|
||||
$ret = Sanitizer::escapeIdForAttribute( $key );
|
||||
$ret = preg_replace( '/__+/', '_', $ret );
|
||||
$ret = Sanitizer::safeEncodeAttribute( $ret );
|
||||
|
||||
return $key;
|
||||
return $ret;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue