On site root, user Variables (URI) do not fetch view_parameters

Author Message

Francisco Iván Antón Prieto

Friday 10 September 2004 2:44:30 am

Is there any security or estructural reason to keep user variables empty in site root?
In index.php: is there a condition '!$uri->isEmpty()' to fetch userVariables from URL When you are in site root, this returns FALSE and you can not propagate user variables throught URL The result is that you put /(variable)/value un your URL and view_parameters keeps empty.

Will I have any future problem if I fix it and allow user variables fetch view_parameters in site ROOT URL?

Thanks for your time.

Francisco Iván Antón Prieto

Friday 10 September 2004 2:56:04 am

I think it could be a fix???

Changes to <i>index.php</i>:

<b>ORIGINAL</b>

// Check for URL translation
    if ( $urlTranslatorAllowed and
         $ini->variable( 'URLTranslator', 'Translation' ) == 'enabled' and
         !$uri->isEmpty())

<b>CHANGED</b>

// Check for URL translation
    if ( $urlTranslatorAllowed and
         $ini->variable( 'URLTranslator', 'Translation' ) == 'enabled' and
         (!$uri->isEmpty() or $uri->userParameters()<>Array()))

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.