[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [10581] property: validate sort column
From: |
Sigurd Nes |
Subject: |
[Fmsystem-commits] [10581] property: validate sort column |
Date: |
Mon, 10 Dec 2012 12:52:08 +0000 |
Revision: 10581
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=10581
Author: sigurdne
Date: 2012-12-10 12:52:07 +0000 (Mon, 10 Dec 2012)
Log Message:
-----------
property: validate sort column
Modified Paths:
--------------
trunk/property/inc/class.soentity.inc.php
Modified: trunk/property/inc/class.soentity.inc.php
===================================================================
--- trunk/property/inc/class.soentity.inc.php 2012-12-10 12:51:39 UTC (rev
10580)
+++ trunk/property/inc/class.soentity.inc.php 2012-12-10 12:52:07 UTC (rev
10581)
@@ -1181,7 +1181,11 @@
$ordermethod = " ORDER BY
fm_location1.loc1_name {$sort}"; // Don't work with LDAP.
break;
default:
- $ordermethod = " ORDER BY
$entity_table.$order $sort";
+ $metadata =
$this->db->metadata($entity_table);
+ if(isset($metadata[$order]))
+ {
+ $ordermethod = " ORDER
BY $entity_table.$order $sort";
+ }
}
}
else
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [10581] property: validate sort column,
Sigurd Nes <=