View Issue Details

IDProjectCategoryView StatusLast Update
0001878OXID eShop (all versions)4.06. Language and translationspublic2011-02-14 14:59
Reporterdainius.bigelis Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version4.3.2 revision 27884 
Fixed in Version4.4.7 revision 33396 
Summary0001878: Shop can be loaded in disabled language when this is requested via param in url
DescriptionWhen some language is disabled in the shop and parameter lang=x with this language ID is added to the url - the shop will be loaded in this language.

If language is disabled, shop should ignore such requests and should not load shop in disabled language. In this case shop should be loaded in default language.
TagsNo tags attached.
Theme
BrowserAll
PHP Versionany
Database Versionany

Activities

tobiasmueller

2010-10-20 15:57

reporter   ~0003620

Why hasn't this been solved until now? This is definitely of higher severity than "minor"!

leofonic

2010-11-14 12:34

reporter   ~0003692

I think this Fix would be sufficient:
Change in oxlang::validateLanguage (from line 536):
from this:
        // checking if this language is valid
        $aLanguages = $this->getLanguageArray();
to that:
        // checking if this language is valid
        $aLanguages = $this->getLanguageArray(null,!isAdmin());
This disables inactive Languages in Frontend.

Linas Kukulskis

2011-02-14 14:59

reporter   ~0004119

fixed language activity check