Fix Views output.
authorDave Long
Wed, 20 Feb 2013 08:06:17 +0000 (08:06 +0000)
committerDave Long
Wed, 20 Feb 2013 08:06:17 +0000 (08:06 +0000)
views/uc_views_handler_field_order_fullname.inc

index 298f565..e017682 100644 (file)
@@ -38,8 +38,8 @@ class uc_views_handler_field_order_fullname extends views_handler_field {
 
   function render($values) {
     $prefix = $this->definition['prefix'];
-    $first = $values->{$this->aliases[$prefix . '_first_name']};
-    $last = $values->{$this->aliases[$prefix . '_last_name']};
+    $first = check_plain($values->{$this->aliases[$prefix . '_first_name']});
+    $last = check_plain($values->{$this->aliases[$prefix . '_last_name']});
     switch ($this->options['format']) {
       case 'last_first':
         return "$last $first";
@@ -49,4 +49,4 @@ class uc_views_handler_field_order_fullname extends views_handler_field {
         return "$first $last";
     }
   }
-}
\ No newline at end of file
+}