webmcp

view demo-app/app/main/_prefork/01-models.lua @ 448:e3da778a8bf3

Use snprintf instead of sprintf as a precautionary measure for security
author jbe
date Wed Jun 01 19:59:05 2016 +0200 (2016-06-01)
parents 2169a62e12f5
children
line source
1 function mondelefant.class_prototype:by_id(id)
2 return self:new_selector()
3 :add_where{ "id = ?", id }
4 :optional_object_mode()
5 :exec()
6 end
7 execute.inner()

Impressum / About Us