Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

try to prevent xss in overview #226

Closed
wants to merge 1 commit into from
Closed

try to prevent xss in overview #226

wants to merge 1 commit into from

Conversation

emmyoop
Copy link
Member

@emmyoop emmyoop commented Dec 9, 2021

Description

Running locally ends up with

angular.js:138 Uncaught Error: [$injector:modulerr] Failed to instantiate module dbt due to:
Error: [$injector:unpr] Unknown provider: $stateProvider

https://errors.angularjs.org/1.8.2/$injector/modulerr?p0=dbt&p1=Error%3A%20%5B%24injector%3Aunpr%5D%20Unknown%20provider%3A%20%24stateProvider%0Ahttps%3A%2F%2Ferrors.angularjs.org%2F1.8.2%2F%24injector%2Funpr%3Fp0%3D%2524stateProvider%0A%20%20%20%20at%20http%3A%2F%2F127.0.0.1%3A8080%2F%3A73%3A837%0A%20%20%20%20at%20http%3A%2F%2F127.0.0.1%3A8080%2F%3A73%3A24221%0A%20%20%20%20at%20s%20(http%3A%2F%2F127.0.0.1%3A8080%2F%3A73%3A25820)%0A%20%20%20%20at%20l%20(http%3A%2F%2F127.0.0.1%3A8080%2F%3A73%3A26125)%0A%20%20%20%20at%20Object.invoke%20(http%3A%2F%2F127.0.0.1%3A8080%2F%3A73%3A26213)%0A%20%20%20%20at%20r%20(http%3A%2F%2F127.0.0.1%3A8080%2F%3A73%3A25609)%0A%20%20%20%20at%20http%3A%2F%2F127.0.0.1%3A8080%2F%3A73%3A25253%0A%20%20%20%20at%20k%20(http%3A%2F%2F127.0.0.1%3A8080%2F%3A73%3A1529)%0A%20%20%20%20at%20v%20(http%3A%2F%2F127.0.0.1%3A8080%2F%3A73%3A25113)%0A%20%20%20%20at%20Qt%20(http%3A%2F%2F127.0.0.1%3A8080%2F%3A73%3A24433)
    at angular.js:138
    at angular.js:5127
    at k (angular.js:388)
    at v (angular.js:5087)
    at Qt (angular.js:5004)
    at o (angular.js:1963)
    at $e (angular.js:1984)
    at Oe (angular.js:1869)
    at angular.js:36595
    at HTMLDocument.n (angular.js:3587)

In the console.

Checklist

  • I have signed the CLA
  • I have generated docs locally, and this change appears to resolve the stated issue
  • I have updated the CHANGELOG.md and added information about my change to the "dbt next" section.

@cla-bot cla-bot bot added the cla:yes label Dec 9, 2021
@@ -3,8 +3,10 @@
const angular = require('angular');
const _ = require('lodash');

import ngSanitize from "angular-sanitize";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
import ngSanitize from "angular-sanitize";
const ngSanitize = require("angular-sanitize");

angular
.module('dbt')
.module('dbt', ['ngSanitize'])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
.module('dbt', ['ngSanitize'])
.module('dbt', [ngSanitize])

@emmyoop
Copy link
Member Author

emmyoop commented Dec 13, 2021

Fixed in #227

@emmyoop emmyoop closed this Dec 13, 2021
@emmyoop emmyoop deleted the er/xss branch December 13, 2021 21:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants