/[smeserver]/rpms/e-smith-hosts/sme9/e-smith-hosts-2.4.0.comment_hostname_validator.patch
ViewVC logotype

Diff of /rpms/e-smith-hosts/sme9/e-smith-hosts-2.4.0.comment_hostname_validator.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.5 by stephdl, Thu Jan 29 12:29:22 2015 UTC Revision 1.6 by stephdl, Fri Feb 6 21:37:09 2015 UTC
# Line 8  diff -Nur e-smith-hosts-2.4.0.old8723/ro Line 8  diff -Nur e-smith-hosts-2.4.0.old8723/ro
8  +      {  +      {
9  +          my $comment = $host->prop('Comment');  +          my $comment = $host->prop('Comment');
10  +          next unless $comment;  +          next unless $comment;
11  +          $comment =~ s/['"]//g;  +          $comment =~ s/[^a-zA-Z0-9\ \_\-\,\.]+//g;
12  +          $host->merge_props(Comment => $comment);  +          $host->merge_props(Comment => $comment);
13  +      }  +      }
14  +}  +}


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed