~ubuntu-branches/ubuntu/natty/munin/natty

« back to all changes in this revision

Viewing changes to master/_bin/munin-cgi-graph.in

  • Committer: Bazaar Package Importer
  • Author(s): Stig Sandbeck Mathisen
  • Date: 2009-12-04 15:48:53 UTC
  • mto: (8.1.8 sid)
  • mto: This revision was merged to the branch mainline in revision 26.
  • Revision ID: james.westby@ubuntu.com-20091204154853-ovbff1s1jo6s4q95
Tags: upstream-1.4.1
ImportĀ upstreamĀ versionĀ 1.4.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
# along with this program; if not, write to the Free Software
18
18
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19
19
#
20
 
# $Id: munin-cgi-graph.in 2975 2009-11-13 07:47:30Z feiner.tom $
 
20
# $Id: munin-cgi-graph.in 3141 2009-12-01 13:18:11Z janl $
21
21
#
22
22
# Please see http://munin.projects.linpro.no/wiki/CgiHowto for how to
23
23
# use this, and how to convert it to fastcgi which will improve speed.
288
288
    my $serv  = shift;
289
289
    my $scale = shift;
290
290
 
291
 
    $serv =~ s/[^\w_\/"'\[\]\(\)+=-]/_/; $serv =~ /^(.+)$/; $serv = $1; #"
292
 
    $host =~ s/[^\w_\/"'\[\]\(\)+=-]/_/; $host =~ /^(.+)$/; $host = $1; #"
 
291
    $serv =~ s{[^\w_/"'\[\]\(\)\+=-]}{_}g; $serv =~ /^(.+)$/; $serv = $1; #"
 
292
    # . needs to be legal in host names
 
293
    $host =~ s{[^\w_/"'\[\]\(\)\.+=-]}{_}g; $host =~ /^(.+)$/; $host = $1; #"
293
294
 
294
295
    my @params = ($GRAPHER);
295
296
    push @params, @$scale;