View Issue Details

IDProjectCategoryView StatusLast Update
0000915OXID eShop (all versions)4.09. SEO, SEO URLpublic2012-12-10 13:35
Reporterphilipp_grashoff Assigned To 
PrioritylowSeveritytweakReproducibilityalways
Status resolvedResolutionfixed 
Product Version4.1.2 revision 18998 
Fixed in Version4.2.0 revision 23610 
Summary0000915: function _collectMetaKeyword in alist.php adds product description twice
DescriptionIn alist.php ~ line 440 (CE4.1.2):
The META keywords are collected from the product long descriptions. If a description is too long ($iMaxTextLenght = 60;), the first 60 chars of the description are added to the whole description in line 444:

$sDesc .= $oStr->substr( $sMidText, 0, ( $oStr->strlen( $sMidText ) - $oStr->strpos( strrev( $sMidText ), ' ' ) ) );

$sDesc contains the whole product description already. I guess it was supposed to be $sDesc = ..., so if the description is too long its truncated.
Additional InformationIt doens't really influence the output as duplicate keywords are removed. Only the last word of the long description+the first word of the long description can be in there too.
TagsNo tags attached.
Theme
BrowserAll
PHP Version5.2.6
Database Version5.0.33

Activities

philipp_grashoff

2009-05-26 10:56

reporter   ~0000952

There is a missspelling: $iMaxTextLenght should be $iMaxTextLength. Perhaps this can be fixed when working on this code.