Merge pull request #3763 from overleaf/jpa-xss-7

[views] mitigate XSS on new subscription page

GitOrigin-RevId: 74baa58527aa9b2f9e434c280885b627f73898b6
This commit is contained in:
Jakob Ackermann
2021-03-13 03:05:14 +00:00
committed by Copybot
parent d9576189a3
commit 18eea6d024
3 changed files with 16 additions and 18 deletions
@@ -11,8 +11,14 @@ export default App.controller('NewSubscriptionController', function(
$scope,
MultiCurrencyPricing,
$http,
$location,
eventTracking
) {
window.couponCode = $location.search().cc || ''
window.plan_code = $location.search().planCode || ''
window.ITMCampaign = $location.search().itm_campaign || ''
window.ITMContent = $location.search().itm_content || ''
if (typeof recurly === 'undefined' || !recurly) {
$scope.recurlyLoadError = true
return