Skip to content
Permalink
Browse files

fixed GC/NC waypoint inpupt: text-transform:uppercase will display up…

…percase but not transform
  • Loading branch information...
following5 committed Jun 20, 2015
1 parent 1303bcd commit 37911778d563de6c1a4860780a61eda706491ebd
Showing with 4 additions and 4 deletions.
  1. +2 −2 htdocs/editcache.php
  2. +2 −2 htdocs/newcache.php
@@ -217,8 +217,8 @@ function getWaypoints($cacheid)
$log_pw = isset($_POST['log_pw']) ? mb_substr($_POST['log_pw'], 0, 20) : $cache_record['logpw'];
// fix #4356: gc waypoints are frequently copy&pasted with leading spaces
$wp_gc = isset($_POST['wp_gc']) ? trim($_POST['wp_gc']) : $cache_record['wp_gc']; // Ocprop
$wp_nc = isset($_POST['wp_nc']) ? trim($_POST['wp_nc']) : $cache_record['wp_nc'];
$wp_gc = isset($_POST['wp_gc']) ? strtoupper(trim($_POST['wp_gc'])) : $cache_record['wp_gc']; // Ocprop
$wp_nc = isset($_POST['wp_nc']) ? strtoupper(trim($_POST['wp_nc'])) : $cache_record['wp_nc'];
// name
$name_not_ok = false;
@@ -275,10 +275,10 @@
// gc- and nc-waypoints
// fix #4356: gc waypoints are frequently copy&pasted with leading spaces
$wp_gc = isset($_POST['wp_gc']) ? trim($_POST['wp_gc']) : ''; // Ocprop
$wp_gc = isset($_POST['wp_gc']) ? strtoupper(trim($_POST['wp_gc'])) : ''; // Ocprop
tpl_set_var('wp_gc', htmlspecialchars($wp_gc, ENT_COMPAT, 'UTF-8'));
$wp_nc = isset($_POST['wp_nc']) ? trim($_POST['wp_nc']) : '';
$wp_nc = isset($_POST['wp_nc']) ? strtoupper(trim($_POST['wp_nc'])) : '';
tpl_set_var('wp_nc', htmlspecialchars($wp_nc, ENT_COMPAT, 'UTF-8'));
//difficulty

0 comments on commit 3791177

Please sign in to comment.
You can’t perform that action at this time.