@email = ();
for $domain (
- qq< $sub_domain (?: $Period $X $sub_domain )+ >,
+ qq< $sub_domain (?: $Period $X $sub_domain )* $Period [A-Za-z][A-Za-z][A-Za-z]?[A-Za-z]? >,
qq< $sub_domain (?: $Period $X $sub_domain )* >
) {
my $route = qq< \@ $X $domain (?: , $X \@ $X $domain )* : $X >;
my $params = shift;
$posting =~ s/\015\012|\015|\012/\n/g; # normalize newlines
- $posting =~ s/[^\S\n]$//gm; # kill whitespaces at the end of all lines
+ $posting =~ s/[^\S\n]+$//gm; # kill whitespaces at the end of all lines
$posting =~ s/\s+$//; # kill whitespaces (newlines) at the end of the string (text)
# check the special syntaxes:
my @links = grep {
is_URL ( $_ -> [1] => ':ALL')
or is_URL (($_ -> [1] =~ /^[Vv][Ii][Ee][Ww]-[Ss][Oo][Uu][Rr][Cc][Ee]:(.+)/)[0] || '' => 'http')
- or ( $_ -> [1] =~ m<^\.?\.?/(?!/)|\?>
+ or ( $_ -> [1] =~ m<^(?:\.?\.?/(?!/)|\?)>
and is_URL (rel_uri ($_ -> [1], $base) => 'http'))
} @rawlinks;
push @rawimages => [$1 => $2] while ($posting =~ /\[([Ii][Mm][Aa][Gg][Ee]):\s*([^\]\s]+)\s*\]/g);
my @images = grep {
is_URL ($_ -> [1] => 'strict_http')
- or ( $_ -> [1] =~ m<^\.?\.?/(?!/)|\?>
+ or ( $_ -> [1] =~ m<^(?:\.?\.?/(?!/)|\?)>
and is_URL (rel_uri ($_ -> [1], $base) => 'http'))
} @rawimages;
push @rawiframes => [$1 => $2] while ($posting =~ /\[([Ii][Ff][Rr][Aa][Mm][Ee]):\s*([^\]\s]+)\s*\]/g);
my @iframes = grep {
is_URL ($_ -> [1] => 'http')
- or is_URL (($_ -> [1] =~ /^[Vv][Ii][Ee][Ww]-[Ss][Oo][Uu][Rr][Cc][Ee]:(.+)/)[0] || '' => 'http')
- or ( $_ -> [1] =~ m<^\.?\.?/(?!/)|\?>
+ or ( $_ -> [1] =~ m<^(?:\.?\.?/(?!/)|\?)>
and is_URL (rel_uri ($_ -> [1], $base) => 'http'))
} @rawiframes;
my $header = $xml -> createElement ('Header');
my $author = $xml -> createElement ('Author');
+ $header -> appendChild ($author);
my @may = (
['name' => 'Name' => $author],
my $date = $xml -> createElement ('Date');
$date -> setAttribute ('longSec'=> $par -> {time});
- $header -> appendChild ($author);
$header -> appendChild ($date);
$message -> appendChild ($header);
# locate the script
#
BEGIN {
-# my $null = $0; $null =~ s/\\/\//g; # for win :-(
-# $Bin = ($null =~ /^(.*)\/.*$/)? $1 : '.';
-# $Shared = "$Bin/../shared";
-# $Config = "$Bin/config";
-# $Script = ($null =~ /^.*\/(.*)$/)? $1 : $null;
-
- my $null = $0; #$null =~ s/\\/\//g; # for win :-(
+ my $null = $0; $null =~ s/\\/\//g; # for win :-(
$Bin = ($null =~ /^(.*)\/.*$/)? $1 : '.';
- $Config = "$Bin/../../../cgi-config/devforum";
- $Shared = "$Bin/../../../cgi-shared";
+ $Shared = "$Bin/../shared";
+ $Config = "$Bin/config";
$Script = ($null =~ /^.*\/(.*)$/)? $1 : $null;
+
+# my $null = $0; #$null =~ s/\\/\//g; # for win :-(
+# $Bin = ($null =~ /^(.*)\/.*$/)? $1 : '.';
+# $Config = "$Bin/../../../cgi-config/devforum";
+# $Shared = "$Bin/../../../cgi-shared";
+# $Script = ($null =~ /^.*\/(.*)$/)? $1 : $null;
}
use lib "$Shared";
);
BEGIN {
-# my $null = $0; $null =~ s/\\/\//g; # for win :-(
-# $Bin = ($null =~ /^(.*)\/.*$/)? $1 : '.';
-# $Shared = "$Bin/../shared";
-# $Config = "$Bin/config";
-# $Script = ($null =~ /^.*\/(.*)$/)? $1 : $null;
-
- my $null = $0; #$null =~ s/\\/\//g; # for win :-(
+ my $null = $0; $null =~ s/\\/\//g; # for win :-(
$Bin = ($null =~ /^(.*)\/.*$/)? $1 : '.';
- $Config = "$Bin/../../../cgi-config/devforum";
- $Shared = "$Bin/../../../cgi-shared";
+ $Shared = "$Bin/../shared";
+ $Config = "$Bin/config";
$Script = ($null =~ /^.*\/(.*)$/)? $1 : $null;
+
+# my $null = $0; #$null =~ s/\\/\//g; # for win :-(
+# $Bin = ($null =~ /^(.*)\/.*$/)? $1 : '.';
+# $Config = "$Bin/../../../cgi-config/devforum";
+# $Shared = "$Bin/../../../cgi-shared";
+# $Script = ($null =~ /^.*\/(.*)$/)? $1 : $null;
}
use lib "$Shared";
);
BEGIN {
-# my $null = $0; $null =~ s/\\/\//g; # for win :-(
-# $Bin = ($null =~ /^(.*)\/.*$/)? $1 : '.';
-# $Shared = "$Bin/../shared";
-# $Config = "$Bin/config";
-# $Script = ($null =~ /^.*\/(.*)$/)? $1 : $null;
-
- my $null = $0; #$null =~ s/\\/\//g; # for win :-(
+ my $null = $0; $null =~ s/\\/\//g; # for win :-(
$Bin = ($null =~ /^(.*)\/.*$/)? $1 : '.';
- $Config = "$Bin/../../../cgi-config/devforum";
- $Shared = "$Bin/../../../cgi-shared";
+ $Shared = "$Bin/../shared";
+ $Config = "$Bin/config";
$Script = ($null =~ /^.*\/(.*)$/)? $1 : $null;
+
+# my $null = $0; #$null =~ s/\\/\//g; # for win :-(
+# $Bin = ($null =~ /^(.*)\/.*$/)? $1 : '.';
+# $Config = "$Bin/../../../cgi-config/devforum";
+# $Shared = "$Bin/../../../cgi-shared";
+# $Script = ($null =~ /^.*\/(.*)$/)? $1 : $null;
}
use lib $Shared;