disallow directories with '
authorgc <gc>
Mon, 28 Mar 2005 15:28:30 +0000 (15:28 +0000)
committergc <gc>
Mon, 28 Mar 2005 15:28:30 +0000 (15:28 +0000)
bin/booh

index 86d7bce1ed0649dbacf65717ff7d0a404c885f5a..9f2b4de64c2924431761667137f4767ecaeb72b2 100755 (executable)
--- a/bin/booh
+++ b/bin/booh
@@ -400,6 +400,9 @@ def walk_source_dir
 
     `find #{$source} -type d`.sort.each { |dir|
         dir.chomp!
+        if dir =~ /'/
+            die __("Source directory or sub-directories can't contain a single-quote character, sorry.")
+        end
 
         #- place xml document on proper node if exists, else create
         xmldir = $xmldoc.elements["//dir[@path='#{utf8(dir)}']"]