mirror of
https://github.com/github/codeql.git
synced 2026-02-23 02:13:41 +01:00
This is not perfect but at least we can be consistent about keeping URLs-that-lead-to-xss in the same query
16 lines
353 B
JavaScript
16 lines
353 B
JavaScript
angular.module('myApp', [])
|
|
.directive('myCustomer', function() {
|
|
return {
|
|
templateUrl: "SAFE" // OK
|
|
}
|
|
})
|
|
.directive('myCustomer', function() {
|
|
return {
|
|
templateUrl: Cookie.get("unsafe") // NOT OK
|
|
}
|
|
});
|
|
|
|
addEventListener('message', (ev) => {
|
|
Cookie.set("unsafe", ev.data);
|
|
});
|