mirror of
				https://bitbucket.org/jsuto/piler.git
				synced 2025-11-04 01:42:27 +01:00 
			
		
		
		
	Timestamping shall use sort by id column
Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
		@@ -1,7 +1,7 @@
 | 
				
			|||||||
- Introduced the archive_address feature, see etc/example.conf for the details
 | 
					- Introduced the archive_address feature, see etc/example.conf for the details
 | 
				
			||||||
- Introduced the raw: search label
 | 
					- Introduced the raw: search label
 | 
				
			||||||
- Added Italian translation. Credits: Stefano Gatto
 | 
					- Added Italian translation. Credits: Stefano Gatto
 | 
				
			||||||
 | 
					- timestamp signing sorts by 'id' column
 | 
				
			||||||
 | 
					
 | 
				
			||||||
1.3.12:
 | 
					1.3.12:
 | 
				
			||||||
-------
 | 
					-------
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -130,7 +130,7 @@ function get_hash_values() {
 | 
				
			|||||||
      else { $stop_id = 1000000000; }
 | 
					      else { $stop_id = 1000000000; }
 | 
				
			||||||
   }
 | 
					   }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
   $query = $db->query("SELECT id, digest FROM " . TABLE_META . " WHERE id >= ? AND id <= ?", array($start_id, $stop_id));
 | 
					   $query = $db->query("SELECT id, digest FROM " . TABLE_META . " WHERE id >= ? AND id <= ? ORDER BY id", array($start_id, $stop_id));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
   foreach($query->rows as $q) {
 | 
					   foreach($query->rows as $q) {
 | 
				
			||||||
      $count++;
 | 
					      $count++;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -353,7 +353,7 @@ class ModelSearchMessage extends Model {
 | 
				
			|||||||
       * If the hashes are the same, then verify by the public key as well
 | 
					       * If the hashes are the same, then verify by the public key as well
 | 
				
			||||||
       */
 | 
					       */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      $query = $this->db->query("SELECT `start_id`, `stop_id`, `hash_value`, `response_time`, `response_string` FROM " . TABLE_TIMESTAMP . " WHERE start_id <= ? AND stop_id >= ?", array($id, $id));
 | 
					      $query = $this->db->query("SELECT `start_id`, `stop_id`, `hash_value`, `response_time`, `response_string` FROM " . TABLE_TIMESTAMP . " WHERE start_id <= ? AND stop_id >= ? ORDER BY id", array($id, $id));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      if(isset($query->row['start_id']) && isset($query->row['stop_id'])) {
 | 
					      if(isset($query->row['start_id']) && isset($query->row['stop_id'])) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user