• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

Rowhelper crash config.xml

Development
1
2
4.4k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D
    dvserg
    last edited by Dec 12, 2008, 6:15 PM Dec 12, 2008, 6:12 PM

    If in rowhelper element (input type, for example) will entered \1 or \2 or any other \xx string, then this will writed as non-printable CHR symbol with \xx code.
    Look  /usr/local/www/pkg_edit.php [144]

    
    // save rowhelper items.
    for($x=0; $x<99; $x++) { // XXX: this really should be passed from the form.
    	                         // XXX: this really is not helping embedded platforms.
    	foreach($fields['rowhelper']['rowhelperfield'] as $rowhelperfield) {
    		if($firstfield == "")  {
    		  $firstfield = $rowhelperfield['fieldname'];
    		} else {
    		  if($firstfield == $rowhelperfield['fieldname']) $rows++;
    		}
    		$comd = "\$value = \$_POST['" . $rowhelperfield['fieldname'] . $x . "'];";
    
    		eval($comd);
    		if($value <> "") {
    # bad code		$comd = "\$pkgarr['row'][" . $x . "]['" . $rowhelperfield['fieldname'] . "'] = \"" . $value . "\";";
    #			//echo($comd . "
    ");
    # will executed here	eval($comd);
    
    # myfix - change eval to real code
    $pkgarr['row']["$x"][$rowhelperfield['fieldname']] = $value;
    		}
    	}
    				}
    

    SquidGuardDoc EN  RU Tutorial
    Localization ru_PFSense

    1 Reply Last reply Reply Quote 0
    • D
      dvserg
      last edited by Dec 13, 2008, 6:43 AM

      Solved

      SquidGuardDoc EN  RU Tutorial
      Localization ru_PFSense

      1 Reply Last reply Reply Quote 0
      1 out of 2
      • First post
        1/2
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.