Revision: 44702
          http://brlcad.svn.sourceforge.net/brlcad/?rev=44702&view=rev
Author:   davidloman
Date:     2011-05-27 14:45:56 +0000 (Fri, 27 May 2011)

Log Message:
-----------
Was mistakenly using StringUtils::getLastStepOfPath() as a .g file path 
validation check.  Fixt.  Now correctly using BrlcadDb::_isValidPath() call.

Modified Paths:
--------------
    geomcore/trunk/src/GS/BrlcadDb.cxx

Modified: geomcore/trunk/src/GS/BrlcadDb.cxx
===================================================================
--- geomcore/trunk/src/GS/BrlcadDb.cxx  2011-05-27 14:37:20 UTC (rev 44701)
+++ geomcore/trunk/src/GS/BrlcadDb.cxx  2011-05-27 14:45:56 UTC (rev 44702)
@@ -149,6 +149,10 @@
   /* If not TOPS, then look it up! */
 
   /* Check to see if we have a valid path, or just a objectName */
+  if (!this->_isValidPath(gPath))
+    return G_PATH_NOT_VALID;
+
+  /* Since we have good path, skip walk and go directly to item */
   std::string objName = StringUtils::getLastStepOfPath(gPath);
 
   dp = db_lookup(this->dbip, objName.c_str(), 0);


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to