// this is not secure var('d'=knop_database(-database='db', -table='user', -username='u', -password='p', -keyfield='keyfield', -lockfield='lockfield'));
// Putting the connection settings into a global array in an atbegin in LassoStartup for the site causes an error:
// By traversing the array, I made a workaround, but it is not sexy: var('d'=knop_database(-database=$cnxn->get(1)->second, -table='user', -username=$cnxn->get(3)->second, -password=$cnxn->get(4)->second, -keyfield='keyfield', -lockfield='lockfield'));
Is there a more elegant way to pass the database connection parameters as an array instead of individual strings?
--steve
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Steve Piercy Web Site Builder Soquel, CA <web@StevePiercy.com> <http://www.StevePiercy.com/>
-- ############################################################# This message is sent to you because you are subscribed to the mailing list <knop@lists.montania.se>. To unsubscribe, E-mail to: <knop-off@lists.montania.se> Send administrative queries to <knop-request@lists.montania.se> List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html Project homepage http://montania.se/projects/knop/ Google Code has the latest downloads at http://code.google.com/p/knop/
Sep 22
Johan Solve Re: Securing Knop Database Connection Variables
Sep 22, 2009; 13:11
Johan Solve
Re: Securing Knop Database Connection Variables
Search
Lasso Programming
This site manages and broadcasts several email lists pertaining to Lasso Programming and technologies related and used by Lasso developers. Sign up today!