aboutsummaryrefslogtreecommitdiff
path: root/src/tafreader.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2007-08-26 04:12:51 +0000
committerMike Buland <eichlan@xagasoft.com>2007-08-26 04:12:51 +0000
commitecedf7a7d87553116c570ba789b6405ac5eff92d (patch)
tree754eccf96c99ef0acd3a49d99e6a2a44447d3c90 /src/tafreader.cpp
parent4873aad0fe15b3f46c6372b661ce926795922a6e (diff)
downloadlibbu++-ecedf7a7d87553116c570ba789b6405ac5eff92d.tar.gz
libbu++-ecedf7a7d87553116c570ba789b6405ac5eff92d.tar.bz2
libbu++-ecedf7a7d87553116c570ba789b6405ac5eff92d.tar.xz
libbu++-ecedf7a7d87553116c570ba789b6405ac5eff92d.zip
Corrected a bug in the Bu::TafReader, it was getting confused when a stray colon
(common in web addresses) was put in the middle of a property list, now it doesn't get confused, it just complains bitterly and refuses to work.
Diffstat (limited to '')
-rw-r--r--src/tafreader.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tafreader.cpp b/src/tafreader.cpp
index db465e9..0d28cd0 100644
--- a/src/tafreader.cpp
+++ b/src/tafreader.cpp
@@ -49,6 +49,8 @@ void Bu::TafReader::groupContent( Bu::TafGroup *pGroup )
49 return; 49 return;
50 else if( c == '/' && la == '*' ) 50 else if( c == '/' && la == '*' )
51 pGroup->addChild( readComment() ); 51 pGroup->addChild( readComment() );
52 else if( c == ':' )
53 throw TafException("Encountered stray ':' in taf stream.");
52 else 54 else
53 pGroup->addChild( readProperty() ); 55 pGroup->addChild( readProperty() );
54 } 56 }