#4356 abgeschnittene GC-Wegpunkte durch Leerzeicheneingabe

This commit is contained in:
Peter Mandrella
2012-07-22 22:52:30 +02:00
parent f1beaf329f
commit cfcd2813e0
4 changed files with 10 additions and 6 deletions

View File

@ -282,10 +282,11 @@
tpl_set_var('log_pw', htmlspecialchars($log_pw, ENT_COMPAT, 'UTF-8'));
// gc- and nc-waypoints
$wp_gc = isset($_POST['wp_gc']) ? $_POST['wp_gc'] : '';
// fix #4356: gc waypoints are frequently copy&pasted with leading spaces
$wp_gc = isset($_POST['wp_gc']) ? trim($_POST['wp_gc']) : '';
tpl_set_var('wp_gc', htmlspecialchars($wp_gc, ENT_COMPAT, 'UTF-8'));
$wp_nc = isset($_POST['wp_nc']) ? $_POST['wp_nc'] : '';
$wp_nc = isset($_POST['wp_nc']) ? trim($_POST['wp_nc']) : '';
tpl_set_var('wp_nc', htmlspecialchars($wp_nc, ENT_COMPAT, 'UTF-8'));
//difficulty