ttrim input values - cosmo - front and backend for Markov-Chain Monte Carlo inversion of cosmogenic nuclide concentrations
(HTM) git clone git://src.adamsgaard.dk/cosmo
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit ee77b3472eb23bd145ac56b5ee6e2a7fc0127630
(DIR) parent 7406efb705d7485353262c46115774eb3da73cf9
(HTM) Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
Date: Wed, 11 Nov 2015 11:51:49 +0100
ttrim input values
Diffstat:
M uploadhistory.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/uploadhistory.php b/uploadhistory.php
t@@ -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.");
}
}