[isf-wifidog] Fixing the bug concerning ID containing periods

Benoit Grégoire bock at step.polymtl.ca
Mer 31 Aou 23:38:29 EDT 2005

> So that means if a node_id (and the issue is only possible for node
> id since they are user-defined, other id are numeric or hash-based),
> an ID containing whitespaces, periods or underscores might confuse
> PHP... How should we treat this. Since this naming scheme is only
> used for making sure var names are unique... we could simply MD5 the
> node_id before concatenating it into the http var name ... since it's
> only used as a reference between getAdminUI and processAdminUI
> methods...
> Benoit, what do you think of this solution ?

I prefer the urlencode solution (it keeps the node_id somewhat readable, and 
it's not longer to code), but I don't feel strongly either way.

Benoit Grégoire, http://benoitg.coeus.ca/
-------------- section suivante --------------
Une pièce jointe non texte a été nettoyée...
Nom: non disponible
Type: application/pgp-signature
Taille: 189 octets
Desc: non disponible
Url: http://listes.ilesansfil.org/pipermail/wifidog/attachments/20050831/cf1428f9/attachment.pgp

More information about the WiFiDog mailing list