matej_suchanek added a comment.

Without greater testing, I think that this piece of code is very unsafe:

data.P27 = Wikidata1.formatStatements({item=entity, property='p27',link='-',conjtype ='/',displayformat='raw'})
if data.P27 then
    args.nationality = Wikidata1.formatStatements({item=data.P27, property='p297',link='-',conjtype ='/'})
end

data.P27 is an arbitrary string which you are assuming to be a Qid.


TASK DETAIL
https://phabricator.wikimedia.org/T163815

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: matej_suchanek
Cc: Izno, matej_suchanek, Jarekt, Aklapper, QZanden, Wikidata-bugs, aude, Mbch331
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to