Skip to content

Commit

Permalink
[FIX] remove preg_match from Hm_Handler_message_list_type soo jmap th…
Browse files Browse the repository at this point in the history
…at has string uid can work
  • Loading branch information
Shadow243 authored and josaphatim committed Apr 16, 2024
1 parent c90ed37 commit 9a1ead7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/core/handler_modules.php
Original file line number Diff line number Diff line change
Expand Up @@ -782,7 +782,7 @@ public function process() {
else {
$list_page = 1;
}
if (array_key_exists('uid', $this->request->get) && preg_match("/\d+/", $this->request->get['uid'])) {
if (array_key_exists('uid', $this->request->get) && preg_match("/^[0-9a-z]+$/i", $this->request->get['uid'])) {
$uid = $this->request->get['uid'];
}
$list_style = $this->user_config->get('list_style_setting', false);
Expand Down

0 comments on commit 9a1ead7

Please sign in to comment.