Imported Upstream version 15.0.0
[platform/upstream/libzypp.git] / zypp / parser / IniParser.cc
index c74386b..cdead1e 100644 (file)
@@ -33,7 +33,7 @@ namespace parser
   namespace {
     inline const std::string & keyGarbage()
     {
-      static const std::string & _val( ":/?|,\\" );
+      static const std::string & _val( ",|/\\" );
       return _val;
     }
   } //namespace
@@ -99,7 +99,7 @@ void IniParser::parse( const InputStream & input_r, const ProgressData::Receiver
 
     if (trimmed[0] == '[')
     {
-      std::string::size_type pos = trimmed.rfind(']');
+      std::string::size_type pos = trimmed.find(']');
       if ( pos != std::string::npos )
       {
        std::string section = trimmed.substr(1, pos-1);