obfuscation fix

This commit is contained in:
Roland Gruber 2015-03-01 10:15:04 +00:00
parent edafcbb170
commit 4324843792
1 changed files with 4 additions and 1 deletions

View File

@ -4,7 +4,7 @@ $Id$
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/) This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
Copyright (C) 2003 - 2006 Tilo Lutz Copyright (C) 2003 - 2006 Tilo Lutz
2009 - 2014 Roland Gruber 2009 - 2015 Roland Gruber
This program is free software; you can redistribute it and/or modify This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
@ -946,6 +946,9 @@ function deobfuscateText($text) {
if (($text == null) || ($text == '')) { if (($text == null) || ($text == '')) {
return $text; return $text;
} }
if (!isObfuscatedText($text)) {
return $text;
}
return str_replace('LAM_OBFUSCATE:', '', base64_decode(str_rot13($text))); return str_replace('LAM_OBFUSCATE:', '', base64_decode(str_rot13($text)));
} }