From a3fb932831ca09b2a931616f1701ea39429356c2 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 23 Jan 2009 13:20:57 +0000 Subject: Fix m_nationalchars using a copy and paste of my unsafe copy and paste algorithm, that will lock up if the string to replace contains the string to search for. Finally make this function a core utility function and remove the copies from 3 modules m_alias m_nationalchars and m_sqlauth git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10990 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/hashcomp.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/hashcomp.h') diff --git a/include/hashcomp.h b/include/hashcomp.h index 1c81c689d..b5db9e329 100644 --- a/include/hashcomp.h +++ b/include/hashcomp.h @@ -103,6 +103,8 @@ unsigned const char rfc_case_sensitive_map[256] = { #endif +CoreExport const std::string& SearchAndReplace(std::string& text, const std::string& pattern, const std::string& replace); + /** The irc namespace contains a number of helper classes. */ namespace irc -- cgit v1.2.3