View Issue Details

This bug affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
13732Feature requestsTheme editorpublic2018-08-07 17:01
ReporterQuoTil Assigned ToLouisGac 
PrioritynoneSeverityfeature 
Status closedResolutionreopened 
Summary13732: Twig - add "striptags" allowed filters
Description

Please add the twig-function "striptags" to the list of allowed filters.

Steps To Reproduce

See the issue incl. the suggestion to report this as a bug here: here https://www.limesurvey.org/forum/design-issues/115436-ls3-x-change-question-style-by-theme-tylesheet-not-inline-via-question-editing#169437

TagsNo tags attached.
Bug heat6
Story point estimate
Users affected %

Users monitoring this issue

There are no users monitoring this issue.

Activities

DenisChenu

DenisChenu

2018-06-01 15:50

developer   ~47939

Last edited: 2018-06-01 15:51

Can you try adding
'components' => array(
[…]
'twigRenderer' => array(
'sandboxConfig' => array(
filters' => array(
'striptags',
),
),
),
[…]

),

in your config.php file ?

If it don't work : try with function (2 times for one function)

DenisChenu

DenisChenu

2018-06-01 17:42

developer   ~47940

Adding filter in config work, but really seems to be a needed fiter.
https://www.limesurvey.org/forum/design-issues/115436-ls3-x-change-question-style-by-theme-tylesheet-not-inline-via-question-editing#169452

Unsure for function

LouisGac

LouisGac

2018-06-04 14:04

developer   ~47962

Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=27303

LouisGac

LouisGac

2018-06-04 14:06

developer   ~47963

by the way, it's strip_tags, with an underscore
http://php.net/manual/en/function.strip-tags.php

markusfluer

markusfluer

2018-08-07 17:01

administrator   ~48736

Release 3.14.2+180807

Related Changesets

LimeSurvey: master fc48346c

2018-06-04 14:03:58

LouisGac

Details Diff
New feature 13732: Twig - add "striptags" allowed filters Affected Issues
13732
mod - application/config/internal.php Diff File

Issue History

Date Modified Username Field Change
2018-06-01 15:22 QuoTil New Issue
2018-06-01 15:50 DenisChenu Note Added: 47939
2018-06-01 15:51 DenisChenu Note Edited: 47939
2018-06-01 17:41 DenisChenu Project Bug reports => Feature requests
2018-06-01 17:42 DenisChenu Assigned To => LouisGac
2018-06-01 17:42 DenisChenu Status new => assigned
2018-06-01 17:42 DenisChenu Severity @50@ => feature
2018-06-01 17:42 DenisChenu Note Added: 47940
2018-06-04 14:04 LouisGac Changeset attached => LimeSurvey master fc48346c
2018-06-04 14:04 LouisGac Note Added: 47962
2018-06-04 14:04 LouisGac Resolution open => fixed
2018-06-04 14:05 LouisGac Status assigned => resolved
2018-06-04 14:06 LouisGac Status resolved => feedback
2018-06-04 14:06 LouisGac Resolution fixed => reopened
2018-06-04 14:06 LouisGac Note Added: 47963
2018-06-04 14:06 LouisGac Status feedback => resolved
2018-08-07 17:01 markusfluer Status resolved => closed
2018-08-07 17:01 markusfluer Note Added: 48736