From 7bb57637af15e81ff28be8f06160dcd6eec9a8ed Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Tue, 19 Jul 2016 21:07:05 +0000 Subject: [PATCH] Quote strings in Settings.php Add quoting to the strings in Settings.php even when substituted from an ERB variable expansion. Change-Id: I873cd4ec3050c450620857646d02a2df8e0ba56a --- templates/Settings.php.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/Settings.php.erb b/templates/Settings.php.erb index 87c6437..ced08a2 100644 --- a/templates/Settings.php.erb +++ b/templates/Settings.php.erb @@ -194,8 +194,8 @@ require_once( "$IP/extensions/ConfirmEdit/ConfirmEdit.php" ); require_once "$IP/extensions/ConfirmEdit/ReCaptcha.php"; $wgCaptchaClass = 'ReCaptcha'; -$wgReCaptchaPublicKey = <%= @wg_recaptchapublickey %>; -$wgReCaptchaPrivateKey = <%= @wg_recaptchaprivatekey %>; +$wgReCaptchaPublicKey = "<%= @wg_recaptchapublickey %>"; +$wgReCaptchaPrivateKey = "<%= @wg_recaptchaprivatekey %>"; $wgMainCacheType = CACHE_ANYTHING; $wgCaptchaTriggers['edit'] = true;