View Issue Details

IDProjectCategoryView StatusLast Update
0001126OXID eShop (all versions)1. ----- eShop frontend -----public2012-12-10 14:17
Reporterrs Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Summary0001126: preg_replace in getRequestUrl
DescriptionI write an own module for your e-shop. Unfortunately the preg_replace in getRequestUrl damages the parameter sysid ($_GET["sysid"]) because of sid in sysid. use:
$sRequest = preg_replace( '/(\&|(\?))sid=[^&]*(&)?/', '$2', $sRequest);
instead of
$sRequest = preg_replace( '/((\&)?sid=[^&]*(&)?)/', '', $sRequest );

It would be nice if you can fix this.
TagsSubshops
Theme
Browser
PHP Version
Database Version

Activities

rs

2009-07-23 08:11

reporter   ~0001265

Ah... there is also a little bug in my preg_replace
It works only for addresses starting with sid:
?sid=0&bla=1&blu=2
and ending with sid
?bla=1&blu=2&sid=0
But not for
?bla=1&sid=0&blu=2

Here a possible solution:
$sRequest = preg_replace( '/(&sid=[^&]*|(\?)sid=[^&]*(&)?)/', '$2', $sRequest);

rimvydas_paskevicius

2009-07-27 16:52

reporter   ~0001285

Updated regexep for correct sid removing from uri