Jump to content

Topic on Extension talk:AbuseFilter/Rules format/Archive 2

Andriy.v (talkcontribs)

I want to check if an uploaded file with a dimention defined by variable file_width and file_height contains a define wikitext. According to Note text in main page: "Variables related to the page edit, including summary, new_wikitext and several others, are now available for action='upload'" i suppose that i can use new_wikitext on this purpose, but it do not work. Can someone help me with this issue?

Sakretsu (talkcontribs)

It looks like the new_wikitext variable isn't available when examining past uploads. Try creating your filter, it should work.

Daimona Eaytoy (talkcontribs)

new_wikitext should indeed work. Edit-related variables are not available when using /test because that data is saved separately in the recentchanges table, and AbuseFilter doesn't query it at the moment.

Andriy.v (talkcontribs)

Yes, i've already saw that. Thank you 2 for confirm. Grazie mille:)!