Add column validation

pull/2487/head
jmontoyaa 7 years ago
parent a8974e8061
commit 5052fb0068
  1. 8
      main/inc/lib/message.lib.php

@ -126,6 +126,10 @@ class MessageManager
}
}
if (!in_array($column, [0, 1, 2])) {
$column = 2;
}
$keyword = Session::read('message_search_keyword');
$keywordCondition = '';
if (!empty($keyword)) {
@ -993,6 +997,10 @@ class MessageManager
$direction = 'ASC';
}
}
if (!in_array($column, [0, 1, 2])) {
$column = 2;
}
$table = Database::get_main_table(TABLE_MESSAGE);
$request = api_is_xml_http_request();
$keyword = Session::read('message_sent_search_keyword');

Loading…
Cancel
Save