<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">Damn !<DIV><BR class="khtml-block-placeholder"></DIV><DIV>I just remembered PHP auto-converts HTTP vars with periods and space to underscores.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Quoted from : <A href="http://ca3.php.net/manual/en/faq.html.php#faq.html.form-image">http://ca3.php.net/manual/en/faq.html.php#faq.html.form-image</A></DIV><P style="margin: 0.0px 0.0px 13.0px 0.0px"><FONT class="Apple-style-span" face="Verdana" size="4"><SPAN class="Apple-style-span" style="font-size: 13.6px;">Because </SPAN></FONT><FONT class="Apple-style-span" face="Verdana" size="4"><SPAN class="Apple-style-span" style="font-size: 13.6px;"><I>foo.x</I></SPAN></FONT><FONT class="Apple-style-span" face="Verdana" size="4"><SPAN class="Apple-style-span" style="font-size: 13.6px;"> and </SPAN></FONT><FONT class="Apple-style-span" face="Verdana" size="4"><SPAN class="Apple-style-span" style="font-size: 13.6px;"><I>foo.y</I></SPAN></FONT><FONT class="Apple-style-span" face="Verdana" size="4"><SPAN class="Apple-style-span" style="font-size: 13.6px;"> would make invalid variable names in PHP, they are automagically converted to </SPAN></FONT><FONT class="Apple-style-span" face="Verdana" size="4"><SPAN class="Apple-style-span" style="font-size: 13.6px;"><I>foo_x</I></SPAN></FONT><FONT class="Apple-style-span" face="Verdana" size="4"><SPAN class="Apple-style-span" style="font-size: 13.6px;"> and </SPAN></FONT><FONT class="Apple-style-span" face="Verdana" size="4"><SPAN class="Apple-style-span" style="font-size: 13.6px;"><I>foo_y</I></SPAN></FONT><FONT class="Apple-style-span" face="Verdana" size="4"><SPAN class="Apple-style-span" style="font-size: 13.6px;">. That is, the periods are replaced with underscores. So, you'd access these variables like any other described within the section on retrieving </SPAN></FONT><A href="http://ca3.php.net/manual/en/language.variables.external.php"><FONT class="Apple-style-span" face="Verdana" size="4"><SPAN class="Apple-style-span" style="font-size: 13.6px;"><FONT class="Apple-style-span" color="#0F009A">variables from outside of PHP</FONT></SPAN></FONT></A><FONT class="Apple-style-span" face="Verdana" size="4"><SPAN class="Apple-style-span" style="font-size: 13.6px;">. For example, </SPAN></FONT><FONT class="Apple-style-span" face="Verdana" size="4"><SPAN class="Apple-style-span" style="font-size: 13.6px;"><I>$_GET['foo_x']</I></SPAN></FONT><FONT class="Apple-style-span" face="Verdana" size="4"><SPAN class="Apple-style-span" style="font-size: 13.6px;">.</SPAN></FONT><FONT class="Apple-style-span" face="Verdana" size="4"><SPAN class="Apple-style-span" style="font-size: 13.6px;"><B></B></SPAN></FONT></P><P style="margin: 0.0px 0.0px 13.0px 0.0px"><FONT class="Apple-style-span" face="Verdana" size="4"><SPAN class="Apple-style-span" style="font-size: 13.6px;"><B>Note: </B></SPAN></FONT><FONT class="Apple-style-span" face="Verdana" size="4"><SPAN class="Apple-style-span" style="font-size: 13.6px;">Spaces in request variable names are converted to underscores.</SPAN></FONT></P><P style="margin: 0.0px 0.0px 13.0px 0.0px"><FONT class="Apple-style-span" face="Verdana" size="4"><SPAN class="Apple-style-span" style="font-size: 13.6px;"></SPAN></FONT></P><P style="margin: 0.0px 0.0px 13.0px 0.0px"><FONT class="Apple-style-span" face="Verdana" size="4"><SPAN class="Apple-style-span" style="font-size: 13.6px;">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...</SPAN></FONT></P><P style="margin: 0.0px 0.0px 13.0px 0.0px"><FONT class="Apple-style-span" face="Verdana" size="4"><SPAN class="Apple-style-span" style="font-size: 13.6px;"></SPAN></FONT></P><P style="margin: 0.0px 0.0px 13.0px 0.0px"><FONT class="Apple-style-span" face="Verdana" size="4"><SPAN class="Apple-style-span" style="font-size: 13.6px;">Benoit, what do you think of this solution ?</SPAN></FONT></P><DIV><BR><DIV><DIV>On 31-Aug-2005, at 22:35 , Proulx François wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">I was investigating on the "bway.net" node ID bug that Dana encountered. Solving this problem implies URL-encoding the node_id before concatenating it for use as an HTTP form variable. This is because HTTP does not allow variables to contain - _ or .<SPAN class="Apple-converted-space">    </SPAN>It is quite trivial and I will fix it, right away.</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">See ya</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">_______________________________________________</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">WiFiDog mailing list</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="mailto:WiFiDog@listes.ilesansfil.org">WiFiDog@listes.ilesansfil.org</A></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="http://listes.ilesansfil.org/cgi-bin/mailman/listinfo/wifidog">http://listes.ilesansfil.org/cgi-bin/mailman/listinfo/wifidog</A></DIV> </BLOCKQUOTE></DIV><BR></DIV></BODY></HTML>