forked from luanti-org/minetest_game
		
	Fix book crash with malicious form data
This commit is contained in:
		| @@ -141,6 +141,8 @@ minetest.register_on_player_receive_fields(function(player, formname, fields) | ||||
| 			string = formspec_string(lpp, data.page, lines, string) | ||||
| 			contents = formspec_read(player_name, title, string, | ||||
| 				text, data.page, data.page_max) | ||||
| 		else | ||||
| 			return -- malicious data | ||||
| 		end | ||||
| 		tab_number = tab | ||||
| 		local formspec = formspec_size .. formspec_core(tab) .. contents | ||||
|   | ||||
		Reference in New Issue
	
	Block a user