View Issue Details

IDProjectCategoryView StatusLast Update
0000914OXID eShop (all versions)2. ----- eShop backend (admin) -----public2009-11-18 10:57
Reportermarco_steinhaeuser Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionunable to reproduce 
Product Version4.1.2 revision 18998 
Summary0000914: Problem with selection lists and special characters
DescriptionNewly entered or adopted entries with special characters in selection lists will be saved as entities to the database. The next record will tread the & sign as an entity as well.

from this post:
http://www.oxid-esales.com/de/resources/forum/installation-and-configuration/problem-mit-auswahllisten-und-sonderzeichen-im-be
Additional InformationIn selectlist_main.php

add to lines 136-145 before setValue : html_entity_decode

$oAttr->oxselectlist__oxvaldesc = new oxField("");
foreach ( $this->aFieldArray as $oField) {
$oAttr->oxselectlist__oxvaldesc->setValue( html_entity_decode($oAttr->oxselectlist__oxvaldesc->value . $oField->name));
if ( isset( $oField->price) && $oField->price) {
$oAttr->oxselectlist__oxvaldesc->setValue( html_entity_decode($oAttr->oxselectlist__oxvaldesc->value . "!P!" . trim(str_replace( ",", ".", $oField->price))));
if ($oField->priceUnit == '%')
$oAttr->oxselectlist__oxvaldesc->setValue( html_entity_decode($oAttr->oxselectlist__oxvaldesc->value . '%'));
}
$oAttr->oxselectlist__oxvaldesc->setValue( html_entity_decode($oAttr->oxselectlist__oxvaldesc->value . "__@@"));
}
TagsNo tags attached.
Theme
BrowserAll
PHP Version5.2.6
Database Version5.0.33

Activities

arvydas_vapsva

2009-08-28 10:25

reporter   ~0001561

Would be nice to see example data that couses the problem. I created and few times saved/updated selection list with data like "test & " ' #$%", checked DB and found no problem in here - no special chars were encoded and written.

There are two cases that can be misunderstood by user, so i'm writing here:
1. oxSelectList::getFieldList() returns specially formatted data where special characters are encoded;
2.
  a) oxSelectList->oxselectlist__oxvaldesc->value - returns data in safe format - special characters are encoded;
  b) oxSelectList->oxselectlist__oxvaldesc->getRawValue() - returns data in plain form - special characters are left non encoded.

arvydas_vapsva

2009-09-29 15:30

reporter   ~0001843

Reminder sent to: marco_steinhaeuser

any comments regarding this bug entry?