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.

eZ debug

Timing: Jan 18 2025 19:07:14
Script start
Timing: Jan 18 2025 19:07:14
Module start 'layout'
Timing: Jan 18 2025 19:07:14
Module start 'content'
Timing: Jan 18 2025 19:07:15
Module end 'content'
Timing: Jan 18 2025 19:07:15
Script end

Main resources:

Total runtime0.8089 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0111 589.6172152.6563
Module start 'layout' 0.01110.0035 742.273439.5078
Module start 'content' 0.01460.7928 781.7813426.3516
Module end 'content' 0.80740.0014 1,208.13288.0938
Script end 0.8088  1,216.2266 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00400.4945160.0002
Check MTime0.00180.2257160.0001
Mysql Total
Database connection0.00240.300710.0024
Mysqli_queries0.761694.1586520.0146
Looping result0.00060.0730500.0000
Template Total0.764494.520.3822
Template load0.00210.263520.0011
Template processing0.762294.234220.3811
Template load and register function0.00030.031510.0003
states
state_id_array0.00100.121110.0010
state_identifier_array0.00130.158520.0006
Override
Cache load0.00170.2116140.0001
Sytem overhead
Fetch class attribute can translate value0.00060.080110.0006
Fetch class attribute name0.00160.203120.0008
XML
Image XML parsing0.00010.013810.0001
class_abstraction
Instantiating content class attribute0.00000.000920.0000
General
dbfile0.00110.1329100.0001
String conversion0.00000.001140.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 10
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs