create_admin() cleanup
functions.inc.php: - create_admin(): use db_insert instead of INSERT queries (this includes automatic escaping of all values) create-admin.php: - use safepost instead of isset($_POST[...]) - don't escape_string post values - it's done inside create_admin now - remove superfluous emptying of empty $tDomains for GET - allow htmlentities-escaping for pAdminCreate_admin_username_text - some whitespace / linebreak changes setup.php: - load config.inc.php only once (loading it twice will break if custom hook functions exist in config.*.php - "can't redefine function ...") - use safepost instead of isset($_POST[...]) - don't escape_string post values - it's done inside create_admin now - escape $tUsername with htmlentities() instead of escape_string git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1190 a1433add-5e2c-0410-b055-b7f2511e0802pull/2/head
parent
dc54de1657
commit
9f2a0db106
Loading…
Reference in New Issue