2010-11-03 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Tools.pm: limpia_cadena removes unwanted characters instead or replacing them with blank spaces. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3512 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
9bca00c3d9
commit
9b8b02539d
|
@ -1,3 +1,8 @@
|
|||
2010-11-03 Ramon Novoa <rnovoa@artica.es>
|
||||
|
||||
* lib/PandoraFMS/Tools.pm: limpia_cadena removes unwanted
|
||||
characters instead or replacing them with blank spaces.
|
||||
|
||||
2010-11-03 Sergio Martin <sergio.martin@artica.es>
|
||||
|
||||
* util/pandora_recode_db.pl: Added a recode script to add
|
||||
|
|
|
@ -369,8 +369,8 @@ sub limpia_cadena {
|
|||
my $micadena;
|
||||
$micadena = $_[0];
|
||||
if (defined($micadena)){
|
||||
$micadena =~ s/[^\-\:\;\.\,\_\s\a\*\=\(\)a-zA-Z0-9]/ /g;
|
||||
$micadena =~ s/[\n\l\f]/ /g;
|
||||
$micadena =~ s/[^\-\:\;\.\,\_\s\a\*\=\(\)a-zA-Z0-9]//g;
|
||||
$micadena =~ s/[\n\l\f]//g;
|
||||
return $micadena;
|
||||
} else {
|
||||
return "";
|
||||
|
|
Loading…
Reference in New Issue