Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorick Peterse <yorickpeterse@gmail.com>2015-12-14 18:52:05 +0300
committerYorick Peterse <yorickpeterse@gmail.com>2015-12-17 19:25:48 +0300
commit5142c61707cc4169a3f8d9e378aacb8f88760db5 (patch)
treefabc862d6eb85dfb9b5ef586582053e3ce20ea04 /app/workers
parent9f95ff0d90802467a04816f1d38e30770a026820 (diff)
Cast values to strings before escaping them
This ensures that e.g. line numbers used in tags are first casted to strings.
Diffstat (limited to 'app/workers')
-rw-r--r--app/workers/metrics_worker.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/workers/metrics_worker.rb b/app/workers/metrics_worker.rb
index 8fffe371572..90a65579382 100644
--- a/app/workers/metrics_worker.rb
+++ b/app/workers/metrics_worker.rb
@@ -24,6 +24,6 @@ class MetricsWorker
end
def escape_value(value)
- value.gsub('=', '\\=')
+ value.to_s.gsub('=', '\\=')
end
end