projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add standard gcommit command
[spider.git]
/
perl
/
DXDb.pm
diff --git
a/perl/DXDb.pm
b/perl/DXDb.pm
index 2122234bf8fe9d8c8a6025d73707a3e49d698ab9..81d21928334ea81e15848eed639f58b3225cb062 100644
(file)
--- a/
perl/DXDb.pm
+++ b/
perl/DXDb.pm
@@
-49,12
+49,6
@@
$lastprocesstime = time;
$nextstream = 0;
%stream = ();
$nextstream = 0;
%stream = ();
-use vars qw($VERSION $BRANCH);
-$VERSION = sprintf( "%d.%03d", q$Revision$ =~ /(\d+)\.(\d+)/ );
-$BRANCH = sprintf( "%d.%03d", q$Revision$ =~ /\d+\.\d+\.(\d+)\.(\d+)/ || (0,0));
-$main::build += $VERSION;
-$main::branch += $BRANCH;
-
# allocate a new stream for this request
sub newstream
{
# allocate a new stream for this request
sub newstream
{
@@
-156,6
+150,10
@@
sub getkey
my $key = uc shift;
my $value;
my $key = uc shift;
my $value;
+ # massage the key
+ $key =~ s/[\@\$\&\%\*]+//g;
+ $key =~ s/^[\.\/]+//g;
+
# make sure we are open
$self->open;
if ($self->{localcmd}) {
# make sure we are open
$self->open;
if ($self->{localcmd}) {
@@
-273,7
+271,7
@@
sub handle_45
# incoming DB Information
my $n = getstream($_[3]);
if ($n) {
# incoming DB Information
my $n = getstream($_[3]);
if ($n) {
- my $mchan = DXChannel
->
get($n->{call});
+ my $mchan = DXChannel
::
get($n->{call});
$mchan->send($_[2] . ":$_[4]") if $mchan;
}
}
$mchan->send($_[2] . ":$_[4]") if $mchan;
}
}