When adding a network printer in FOG 0.32 extra backslashes are added to the alias field. For example \\server\printer would be added to the database when \server\printer should be added. This is due to the line $alias = mysql_real_escape_string( $_POST[“alias”] ); in printer.add.include.php by changing this line to $alias = $_POST[“alias”]; The printer is added correctly \server\printer but doing this leaves you open to SQL injection attacks and would not be recommended.
A
Posts made by aaronrus
-
Issue when adding network printer in 0.32