Ralph Mitchell fixed: input field with NAME= and VALUE= weren't processed
properly case insensitive
This commit is contained in:
Родитель
38b1d96750
Коммит
225a652021
|
@ -26,10 +26,10 @@ sub namevalue {
|
|||
my ($tag)=@_;
|
||||
my $name=$tag;
|
||||
if($name =~ /name *=/i) {
|
||||
if($name =~ /name *= *([^\"\']([^ \">]*))/) {
|
||||
if($name =~ /name *= *([^\"\']([^ \">]*))/i) {
|
||||
$name = $1;
|
||||
}
|
||||
elsif($name =~ /name *= *(\"|\')([^\"\']*)(\"|\')/) {
|
||||
elsif($name =~ /name *= *(\"|\')([^\"\']*)(\"|\')/i) {
|
||||
$name=$2;
|
||||
}
|
||||
else {
|
||||
|
@ -45,10 +45,10 @@ sub namevalue {
|
|||
# get value tag
|
||||
my $value= $tag;
|
||||
if($value =~ /[^\.a-zA-Z0-9]value *=/i) {
|
||||
if($value =~ /[^\.a-zA-Z0-9]value *= *([^\"\']([^ \">]*))/) {
|
||||
if($value =~ /[^\.a-zA-Z0-9]value *= *([^\"\']([^ \">]*))/i) {
|
||||
$value = $1;
|
||||
}
|
||||
elsif($value =~ /[^\.a-zA-Z0-9]value *= *(\"|\')([^\"\']*)(\"|\')/) {
|
||||
elsif($value =~ /[^\.a-zA-Z0-9]value *= *(\"|\')([^\"\']*)(\"|\')/i) {
|
||||
$value=$2;
|
||||
}
|
||||
else {
|
||||
|
|
Загрузка…
Ссылка в новой задаче