[Phpmyadmin-devel] Re: using md5(table_name) for identifying a table in PMA_showMessage()

Michal Čihař michal at cihar.com
Wed Oct 12 01:41:28 CEST 2005


On Tue 11. 10. 2005 12:02, Sebastian Mendel wrote:
> PMA_showMessage() in common.lib.php uses md5() for generating the
> table-id, why md5() why not cleartext?

Probably because you need to escape plaintext somehow and md5 is easiest 
way to ensure you don't get any ugly characters on output :-)

> and second: why only the table-name? the table is not unique if you
> have more than one db ...

No idea, probably was meant only for one database queries...

    Michal Čihař | http://cihar.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.phpmyadmin.net/pipermail/developers/attachments/20051012/963bf753/attachment.sig>

More information about the Developers mailing list