Menu

#26 Link problem when "-" in the hostname

CGI_Forms
closed-remind
nobody
None
5
2005-12-07
2005-12-07
No

I have some hosts with "-" in their names (like
host-test).
In this case on the page: perfparse.cgi?select_host=1
I have a link to this host like :
perfparse.cgi?select_metric=1&host_name=%2D
even if I have two "-" in the name (like my-host-test)

Discussion

  • Artiom Molchanov

    • status: open --> closed-remind
     
  • Artiom Molchanov

    Logged In: YES
    user_id=620582

    Little patch to correct the problem:
    in cgi/cgi.c

    138,139c138,139
    < } else if ( c == '-' || c == '+' ) {
    < sOut[b] = c;
    ---
    > } else if (c == ' ') {
    > sOut[b] = '+';

     

Log in to post a comment.