X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FForm.pm;h=55b6f695dc0abd257f3fec7ca6591af8eeee6d34;hb=ad27efa6a3b7e8feea8497c24acebe5bd501156b;hp=707540ed7928358ef2fc072e280ddc3de8c667f0;hpb=38e7a330463acef3f5856985353faba026ecf7f9;p=kivitendo-erp.git diff --git a/SL/Form.pm b/SL/Form.pm index 707540ed7..55b6f695d 100644 --- a/SL/Form.pm +++ b/SL/Form.pm @@ -265,7 +265,11 @@ sub new { $self->{action} = lc $self->{action}; $self->{action} =~ s/( |-|,|\#)/_/g; - $self->{version} = "2.6.1"; + #$self->{version} = "2.6.1"; # Old hardcoded but secure style + open VERSION_FILE, "VERSION"; # New but flexible code reads version from VERSION-file + $self->{version} = ; + close VERSION_FILE; + $self->{version} =~ s/[^0-9A-Za-z\.\_\-]//g; # only allow numbers, letters, points, underscores and dashes. Prevents injecting of malicious code. $main::lxdebug->leave_sub(); @@ -474,7 +478,10 @@ sub info { @@ -665,6 +672,15 @@ sub header { | if $self->{"fokus"}; + my $title_hack = qq| + + |; + #Set Calendar my $jsscript = ""; if ($self->{jsscript} == 1) { @@ -700,9 +716,9 @@ sub header { $favicon $jsscript $ajax - $fokus - + $title_hack +