diff options
author | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-02-18 01:04:00 +0000 |
---|---|---|
committer | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-02-18 01:04:00 +0000 |
commit | 74e069e16e16d84546a71e23b5dddd49ebdf6a43 (patch) | |
tree | 9bb405ba348b812b002349c80332427afc0a96df | |
parent | d0ceb67c7ea2e1ea8f8d5c4c8200133fabbe4bed (diff) |
Adding blacklisting for languages
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/branches/1.2@814 4979c152-3d1c-0410-bac9-87ea11338e46
-rwxr-xr-x | LedgerSMB/Form.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/LedgerSMB/Form.pm b/LedgerSMB/Form.pm index 01dbe085..90f99454 100755 --- a/LedgerSMB/Form.pm +++ b/LedgerSMB/Form.pm @@ -582,6 +582,9 @@ sub parse_template { my $ok; if ($self->{language_code}) { + if ($self->{language_code} =~ /(\.\.|\/|\*)/){ + $self->error("Invalid Language Code"); + } if (-f "$self->{templates}/$self->{language_code}/$self->{IN}") { open(IN, '<', "$self->{templates}/$self->{language_code}/$self->{IN}") or $self->error("$self->{IN} : $!"); |