Minor - adding trim

1.10.x
Julio Montoya 10 years ago
parent e7e345ef76
commit 024bd3466a
  1. 2
      main/inc/lib/main_api.lib.php

@ -1305,6 +1305,8 @@ function api_get_user_info_from_username($username = '')
if (empty($username)) {
return false;
}
$username = trim($username);
$sql = "SELECT * FROM ".Database :: get_main_table(TABLE_MAIN_USER)."
WHERE username='".Database::escape_string($username)."'";
$result = Database::query($sql);

Loading…
Cancel
Save