C. Scott Ananian has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/378774 )

Change subject: Use HTML5 id attributes; remove use of deprecated 
Sanitizer::escapeId()
......................................................................

Use HTML5 id attributes; remove use of deprecated Sanitizer::escapeId()

Bug: T176170
Change-Id: I89a4f8ba24b867f2d5ccdc2bf9a4312ab9b385a9
---
M includes/Cite.php
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Cite 
refs/changes/74/378774/1

diff --git a/includes/Cite.php b/includes/Cite.php
index 69a0f99..e47d8cb 100644
--- a/includes/Cite.php
+++ b/includes/Cite.php
@@ -403,13 +403,13 @@
                        }
                        if ( isset( $argv['name'] ) ) {
                                // Key given.
-                               $key = Sanitizer::escapeId( $argv['name'], 
'noninitial' );
+                               $key = Sanitizer::escapeIdForAttribute( 
$argv['name'] );
                                unset( $argv['name'] );
                                --$cnt;
                        }
                        if ( isset( $argv['follow'] ) ) {
                                // Follow given.
-                               $follow = Sanitizer::escapeId( $argv['follow'], 
'noninitial' );
+                               $follow = Sanitizer::escapeIdForAttribute( 
$argv['follow'] );
                                unset( $argv['follow'] );
                                --$cnt;
                        }

-- 
To view, visit https://gerrit.wikimedia.org/r/378774
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I89a4f8ba24b867f2d5ccdc2bf9a4312ab9b385a9
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Cite
Gerrit-Branch: master
Gerrit-Owner: C. Scott Ananian <canan...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to