aboutsummaryrefslogtreecommitdiff
path: root/perl/contrib/formfind
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2010-02-14 19:40:18 +0000
committerYang Tse <yangsita@gmail.com>2010-02-14 19:40:18 +0000
commita07bc79117971b96ebf3188c0a34a73ee0a3609b (patch)
tree4c5f985bd2bd407871dfc9d4bc8c05cbaa9851e2 /perl/contrib/formfind
parent2268657272e591948467135dcd713bd80e3212b3 (diff)
removed trailing whitespace
Diffstat (limited to 'perl/contrib/formfind')
-rwxr-xr-xperl/contrib/formfind14
1 files changed, 7 insertions, 7 deletions
diff --git a/perl/contrib/formfind b/perl/contrib/formfind
index 976e3ee54..6d291ddd6 100755
--- a/perl/contrib/formfind
+++ b/perl/contrib/formfind
@@ -76,7 +76,7 @@ while($in =~ /[^<]*(<[^>]+>)/g ) {
$tag = $1;
if($tag =~ /^<!--/) {
- # this is a comment tag, ignore it
+ # this is a comment tag, ignore it
}
else {
if(!$form &&
@@ -90,13 +90,13 @@ while($in =~ /[^<]*(<[^>]+>)/g ) {
}
$action= $tag;
$action=~ s/.*action *= *(\'|\"|)([^ \"\'>]*).*/$2/gi;
-
+
$method=uc($method);
-
+
$enctype=$tag;
if ($enctype =~ /enctype *=/) {
$enctype=~ s/.*enctype *= *(\'|\"|)([^ \"\'>]*).*/$2/gi;
-
+
if($enctype eq "multipart/form-data") {
$enctype="multipart form upload [use -F]"
}
@@ -132,7 +132,7 @@ while($in =~ /[^<]*(<[^>]+>)/g ) {
elsif($form &&
($tag =~ /^< *(input|select)/i)) {
$mtag = $1;
-
+
($name, $value)=namevalue($tag);
if($mtag =~ /select/i) {
@@ -154,7 +154,7 @@ while($in =~ /[^<]*(<[^>]+>)/g ) {
}
elsif($name eq "") {
# let's read the value parameter
-
+
print "Button: \"$value\" ($type)\n";
push @alts, "$value";
}
@@ -173,7 +173,7 @@ while($in =~ /[^<]*(<[^>]+>)/g ) {
elsif($form &&
($tag =~ /^< *textarea/i)) {
my ($name, $value)=namevalue($tag);
-
+
print "Textarea: NAME=\"$name\"\n";
}
elsif($select) {