소스 검색

Fixed LDAP prefix parsing logic

Sascha Zelzer 14 년 전
부모
커밋
96f62db25d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;