Merge "Escape the description param from heat template"
This commit is contained in:
commit
084ab1b033
@ -13,6 +13,7 @@
|
|||||||
import json
|
import json
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
from django.utils import html
|
||||||
from django.utils.translation import ugettext_lazy as _
|
from django.utils.translation import ugettext_lazy as _
|
||||||
from django.views.decorators.debug import sensitive_variables # noqa
|
from django.views.decorators.debug import sensitive_variables # noqa
|
||||||
|
|
||||||
@ -310,7 +311,7 @@ class CreateStackForm(forms.SelfHandlingForm):
|
|||||||
field_args = {
|
field_args = {
|
||||||
'initial': param.get('Default', None),
|
'initial': param.get('Default', None),
|
||||||
'label': param.get('Label', param_key),
|
'label': param.get('Label', param_key),
|
||||||
'help_text': param.get('Description', ''),
|
'help_text': html.escape(param.get('Description', '')),
|
||||||
'required': param.get('Default', None) is None
|
'required': param.get('Default', None) is None
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user