Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: modules/discourse/manifests/sitesetting.pp

Issue 5018733013630976: 1388 - Update postgresql module to 4.x (Closed)
Patch Set: Created Oct. 6, 2014, 11:47 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« dependencies ('K') | « modules/discourse/manifests/init.pp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/discourse/manifests/sitesetting.pp
===================================================================
--- a/modules/discourse/manifests/sitesetting.pp
+++ b/modules/discourse/manifests/sitesetting.pp
@@ -4,10 +4,10 @@
$type = 1,
$ensure = 'present'
) {
- # Attempt some escaping
- $escaped_value = regsubst($value, '[\'\\]', '\\\1', 'G')
- $escaped_setting = regsubst($setting, '[\'\\]', '\\\1', 'G')
- $escaped_type = regsubst($type, '\D', '', 'G')
+
+ $escaped_value = postgresql_escape($value)
+ $escaped_setting = postgresql_escape($setting)
+ $escaped_type = postgresql_escape($type)
case $ensure {
default: {
« dependencies ('K') | « modules/discourse/manifests/init.pp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld