Changeset 944 for trunk/cgi-bin/main.cgi
- Timestamp:
- 09/19/23 10:40:24 (14 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cgi-bin/main.cgi
r939 r944 1357 1357 # collect per-IP rDNS fields. only copy over the ones that actually have something in them. 1358 1358 my %iprev; 1359 foreach (keys %webvar) { 1360 $iprev{$_} = $webvar{$_} if /host_[\d.a-fA-F:]+/ && $webvar{$_}; 1359 foreach (sort keys %webvar) { 1360 # skip all but the host_* fields 1361 next unless /^host_[\d.a-fA-F:]+/; 1362 # propagate the per-IP rDNS if present 1363 $iprev{$_} = $webvar{$_} if $webvar{$_}; 1364 # set the rDNS to be cleared if there was a value before (was_host_* field), 1365 # but there's no value in the matching visible form field now (host_*) 1366 $iprev{$_} = '' if $webvar{"was_$_"} && !$webvar{$_}; 1361 1367 } 1362 1368
Note:
See TracChangeset
for help on using the changeset viewer.