#!/usr/bin/tclsh
-# $Id: robot.tcl,v 1.32 2002/03/25 16:11:08 adam Exp $
+# $Id: robot.tcl,v 1.34 2002/06/18 19:57:53 adam Exp $
#
proc RobotFileNext1 {area lead} {
# puts "RobotFileNext1 area=$area lead=$lead"
if {[string length $href] > 256} {
return 0
}
-# if {[string first {?} $href] >= 0} {
-# return 0
-# }
+
+# Skip pages that have ? in them
# if {[string first {?} $url] >= 0 && [string first {?} $href] >= 0} {
# return 0
# }
set metaname {}
set metacontent {}
puts -nonewline $out "<meta"
- foreach a [array names parm] {
+ set al [array names parm]
+ foreach a $al {
set al [string tolower $a]
puts -nonewline $out " $al"
puts -nonewline $out {="}
set metacontent $parm($a)
}
}
+ unset parm($al)
}
puts $out "></meta>"
# go through robots directives (af any)