mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-22 20:17:16 +00:00
[Bug Fix] Escape barter buy line search text (#5140)
This commit is contained in:
1 parent
202a316f81
commit
2de1c08d63
2 files changed
+2
-2
No files matched your search
@@ -236,7 +236,7 @@ public:
|
||||
)
|
||||
{
|
||||
BuyerLineSearch_Struct all_entries{};
|
||||
std::string where_clause(fmt::format("`item_name` LIKE \"%{}%\" ", search_string));
|
||||
std::string where_clause(fmt::format("`item_name` LIKE \"%{}%\" ", Strings::Escape(search_string)));
|
||||
|
||||
if (char_id) {
|
||||
where_clause += fmt::format("AND `char_id` = '{}' ", char_id);
|
||||
|
||||
+1
-1
@@ -1761,7 +1761,7 @@ static void UpdateTraderCustomerPriceChanged(
|
||||
void Client::SendBuyerResults(BarterSearchRequest_Struct& bsr)
|
||||
{
|
||||
if (ClientVersion() >= EQ::versions::ClientVersion::RoF) {
|
||||
std::string search_string(bsr.search_string);
|
||||
std::string search_string(bsr.search_string, strnlen(bsr.search_string, sizeof(bsr.search_string)));
|
||||
BuyerLineSearch_Struct results{};
|
||||
|
||||
SetBarterTime();
|
||||
|
||||
Reference in new issue
Block a user