Santhosh has uploaded a new change for review. https://gerrit.wikimedia.org/r/143595
Change subject: Validate the title in link card ...................................................................... Validate the title in link card Validate whether it is null or empty Change-Id: I29eb1493db753f8bacadaf9caf3e22671800bab3 --- M modules/tools/ext.cx.tools.link.js 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ContentTranslation refs/changes/95/143595/1 diff --git a/modules/tools/ext.cx.tools.link.js b/modules/tools/ext.cx.tools.link.js index b03dbe1..f9da2ba 100644 --- a/modules/tools/ext.cx.tools.link.js +++ b/modules/tools/ext.cx.tools.link.js @@ -373,7 +373,7 @@ title = cleanupLinkHref( this.$link.attr( 'href' ) ); } // Do we have a valid title now? - if ( !title ) { + if ( !title || !title.trim() ) { this.stop(); return; } -- To view, visit https://gerrit.wikimedia.org/r/143595 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I29eb1493db753f8bacadaf9caf3e22671800bab3 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/ContentTranslation Gerrit-Branch: master Gerrit-Owner: Santhosh <santhosh.thottin...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits