View Issue Details

This bug affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
18164Bug reportsSurvey editingpublic2022-09-27 21:27
ReporterDenisChenu Assigned ToDenisChenu  
PrioritynoneSeverityminor 
Status closedResolutionfixed 
Product Version5.3.x 
Fixed in Version5.3.x 
Summary18164: Unable to use " in regexp validation
Description

When use " in regexp validation : it was set to ' when open again

Steps To Reproduce

Steps to reproduce

Create a short text question
enter " in validation
Save and close
Edit again
" is replaced by '

Expected result

" stay "

Actual result

" replaced by '

There are surely some usage of " in regexp, i don't search one. Since in 3.X it's OK, it's clearly an issue here …

TagsNo tags attached.
Bug heat2
Complete LimeSurvey version number (& build) 5.3.17
I will donate to the project if issue is resolvedNo
Browsernot relevant
Database type & versionnot relevant
Server OS (if known)not relevant
Webserver software & version (if known)not relevant
PHP Versionnot relevant

Users monitoring this issue

There are no users monitoring this issue.

Activities

DenisChenu

DenisChenu

2022-05-30 17:09

developer   ~70106

Find when work on https://github.com/LimeSurvey/LimeSurvey/pull/2421

Why not use Yii Chtml directly …

DenisChenu

DenisChenu

2022-05-31 09:43

developer   ~70121

PS : commit related : https://github.com/LimeSurvey/LimeSurvey/pull/2421/commits/34d5b343cd9ebbb9a24c722dbedbcca24e16ad27#diff-fbbf22951af75c4afde7c79aa87b5a2cfbb653d8b02563cb2f59d11036967c6dL17

usage of value="<?= Chtml::encode($option->value); ?>"
removing the AWFUL $this->generalOption->formElement->value = str_replace('"', "'",$this->generalOption->formElement->value); not existing in 3.X

Issue History

Date Modified Username Field Change
2022-05-30 17:08 DenisChenu New Issue
2022-05-30 17:09 DenisChenu Note Added: 70106
2022-05-30 17:09 DenisChenu Bug heat 0 => 2
2022-05-30 17:09 DenisChenu Assigned To => DenisChenu
2022-05-30 17:09 DenisChenu Status new => assigned
2022-05-30 18:23 DenisChenu Status assigned => ready for testing
2022-05-30 18:23 DenisChenu Relationship added related to 18110
2022-05-31 09:39 c_schmitz Relationship deleted related to 18110
2022-05-31 09:43 DenisChenu Note Added: 70121
2022-05-31 14:59 DenisChenu Status ready for testing => resolved
2022-05-31 14:59 DenisChenu Resolution open => fixed
2022-05-31 14:59 DenisChenu Fixed in Version => 5.3.x
2022-09-27 21:27 c_schmitz Status resolved => closed