RailsRRDTool 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rrd.rb +1 -1
- metadata +1 -1
data/lib/rrd.rb
CHANGED
@@ -126,7 +126,7 @@ class RRD
|
|
126
126
|
|
127
127
|
begin
|
128
128
|
cmd = "#{rrdpath} graph #{self.sanitize(image_path, 'path')} "
|
129
|
-
cmd << "-s #{self.sanitize(params[:ago]
|
129
|
+
cmd << "-s #{self.sanitize(params[:ago], 'alphanum')} "
|
130
130
|
cmd << "-w #{self.sanitize(params[:width], 'num')} -h #{self.sanitize(params[:height], 'num')} "
|
131
131
|
cmd << "-a #{self.sanitize(params[:image_type], 'imagetype')} "
|
132
132
|
cmd << "-t '#{self.sanitize(params[:title], 'alphanum')}' "
|