Partial fix for bug #121
authorcantor <cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Tue, 1 Feb 2005 19:05:40 +0000 (19:05 +0000)
committercantor <cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Tue, 1 Feb 2005 19:05:40 +0000 (19:05 +0000)
git-svn-id: https://svn.middleware.georgetown.edu/cpp-sp/trunk@1344 cb58f699-b61c-0410-a6fe-9272a202ed29

shib-target/XMLRequestMapper.cpp

index 6b8e5e0..2be6511 100644 (file)
@@ -202,6 +202,10 @@ Override::Override(const DOMElement* e, Category& log, const Override* base) : m
                 log.warn("skipping Path element (%d) with empty name attribute",i);
                 continue;
             }
+            else if (*n==chSlash && !n[1]) {
+                log.warn("skipping Path element (%d) with a lone slash in the name attribute",i);
+                continue;
+            }
             Override* o=new Override(path,log,this);
             pair<bool,const char*> name=o->getString("name");
             char* dup=strdup(name.second);