Bug 7955: Followup : Check the syspref value (avoid sql injection)