Explorar o código

Fixed LDAP prefix parsing logic

Sascha Zelzer %!s(int64=14) %!d(string=hai) anos
pai
achega
96f62db25d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Libs/PluginFramework/ctkLDAPExpr.cpp

+ 1 - 1
Libs/PluginFramework/ctkLDAPExpr.cpp

@@ -545,7 +545,7 @@ ctkLDAPExpr::ParseState::ParseState( const QString &str ) throw (std::invalid_ar
 //----------------------------------------------------------------------------
 bool ctkLDAPExpr::ParseState::prefix( const QString &pre )
 {
-  if (!m_str.startsWith(pre.mid(m_pos)))
+  if (!m_str.mid(m_pos).startsWith(pre))
     return false;
   m_pos += pre.length();
   return true;