ip_modred_form bug

zentarim
2013-11-07
2013-11-07
  • zentarim

    zentarim - 2013-11-07

    If the field "description" contains the character <B>"</B> and you try to change the network, field "description" will be displayed incorrectly (not fully)
    html-code in this case:

    <input type="text" size="25" name="descr" value="ООО "Management"" maxlength="100">
    

    it could be avoided by changing the file ip_modred_form.cgi:

    --- ip_modred_form.cgi.orig 2013-10-27 22:38:24.000000000 +0000
    +++ ip_modred_form.cgi  2013-11-08 00:04:16.000000000 +0000
    @@ -91,7 +91,7 @@
    
     print "<td></td></tr>\n";
    -print "<tr bgcolor=\"$color\" valign=\"top\"><td>$red</td><td><input type=\"text\" size=\"2\" name=\"BM_new\" value=\"$BM\" maxlength=\"3\"></td><td><i><input type=\"text\" size=\"25\" name=\"descr\" value=\"$descr\" maxlength=\"100\"></i></td><td><select name=\"loc\" size=\"1\">";
    +print "<tr bgcolor=\"$color\" valign=\"top\"><td>$red</td><td><input type=\"text\" size=\"2\" name=\"BM_new\" value=\"$BM\" maxlength=\"3\"></td><td><i><input type=\"text\" size=\"25\" name=\"descr\" value=\'$descr\' maxlength=\"100\"></i></td><td><select name=\"loc\" size=\"1\">";
     if ($loc eq "NULL" ) {
        print "<option></option>"; 
     } else {
    
     
    Last edit: zentarim 2013-11-07
  • Marc Uebel

    Marc Uebel - 2013-11-07

    Hi
    Thanks a lot for reporting that issue and for the patch! It will be included with next updated.
    Regareds
    Marc

     

Log in to post a comment.