Commit ee77b347 authored by Anders Damsgaard's avatar Anders Damsgaard

trim input values

parent 7406efb7
......@@ -209,7 +209,7 @@ if (is_writable($outputfile)) {
// write values to file
foreach ($fieldnames as $fieldname) {
if (fwrite($handle, addslashes($_POST[$fieldname]) . "\t") === false) {
if (fwrite($handle, addslashes(trim($_POST[$fieldname])) . "\t") === false) {
die("The php server could not write $fieldname to $outputfile.");
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment