324 |
|| $wiki->{input}->parameter ('mycmd') ## for compatibility with |
|| $wiki->{input}->parameter ('mycmd') ## for compatibility with |
325 |
|| 'default'; ## YukiWiki and SuikaWiki 2 |
|| 'default'; ## YukiWiki and SuikaWiki 2 |
326 |
$mode =~ tr/-/_/; |
$mode =~ tr/-/_/; |
327 |
|
my $data = $wiki->{input}->parameter ('wikiform__msg'); |
328 |
|
if (($mode eq 'wikiform' and $page =~ /^http:/) or |
329 |
|
($mode eq 'wikiform' and ($data =~ s/http:/http:/g) > 20)) { |
330 |
|
$mode = 'spam'; |
331 |
|
push @{$wiki->{var}->{client}->{used_for_negotiate}}, 'Negotiate'; |
332 |
|
} |
333 |
if ($mode eq 'default' or $mode =~ /[^0-9A-Za-z_]/) { |
if ($mode eq 'default' or $mode =~ /[^0-9A-Za-z_]/) { |
334 |
my $cookie = $wiki->{input}->meta_variable ('HTTP_COOKIE'); |
my $cookie = $wiki->{input}->meta_variable ('HTTP_COOKIE'); |
335 |
## BUG: this code is not strict |
## BUG: this code is not strict |