View Issue Details

IDProjectCategoryView StatusLast Update
0001813OXID eShop (all versions)4.09. SEO, SEO URLpublic2012-12-10 13:35
Reportersarunas_valaskevicius Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Product VersionPast development 
Fixed in Version4.3.2 revision 27884 
Summary0001813: wrong regexp for getting unique url
Descriptionin 401-th line of oxseoencoder.php:
$sSeoUrl = $oStr->preg_replace( "#^(/*)(".implode('|', $this->_getReservedEntryKeys()).")/#i", "\$1\$2$sAdd/", $sSeoUrl );

is wrong:
$this->_getReservedEntryKeys() elements are NOT preg_quoted (see http://lt.php.net/manual/en/function.preg-quote.php)

this would bring harm to systems where there file or dir exist with '#' in the name - regexp would become wrong (this is not the only case of problems, but may be the hardest)
TagsNo tags attached.
Theme
BrowserAll
PHP Versionany
Database Versionany

Activities

There are no notes attached to this issue.