Changeset 941

Show
Ignore:
Timestamp:
05/21/08 14:52:29 (7 months ago)
Author:
laurentj
Message:

fixed ticket #599: jUrl::toString didn't removed multiple '/' between the scriptName and the pathInfo

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.0.x/lib/jelix/core/jUrl.class.php

    r716 r941  
    206206    */ 
    207207    public function toString ($forxml = false){ 
    208         $url = $this->scriptName.$this->pathInfo; 
     208        $url = $this->scriptName; 
     209        if(substr($this->scriptName,-1) == '/') 
     210            $url.=ltrim($this->pathInfo,'/'); 
     211        else 
     212            $url.= $this->pathInfo; 
     213 
    209214        if (count ($this->params)>0){ 
    210215            $q = http_build_query($this->params, '', ($forxml?'&':'&')); 
  • branches/1.0.x/lib/jelix/core/jUrl.class.php

    r716 r941  
    206206    */ 
    207207    public function toString ($forxml = false){ 
    208         $url = $this->scriptName.$this->pathInfo; 
     208        $url = $this->scriptName; 
     209        if(substr($this->scriptName,-1) == '/') 
     210            $url.=ltrim($this->pathInfo,'/'); 
     211        else 
     212            $url.= $this->pathInfo; 
     213 
    209214        if (count ($this->params)>0){ 
    210215            $q = http_build_query($this->params, '', ($forxml?'&':'&')); 
  • branches/1.0.x/lib/jelix/core/jUrl.class.php

    r716 r941  
    206206    */ 
    207207    public function toString ($forxml = false){ 
    208         $url = $this->scriptName.$this->pathInfo; 
     208        $url = $this->scriptName; 
     209        if(substr($this->scriptName,-1) == '/') 
     210            $url.=ltrim($this->pathInfo,'/'); 
     211        else 
     212            $url.= $this->pathInfo; 
     213 
    209214        if (count ($this->params)>0){ 
    210215            $q = http_build_query($this->params, '', ($forxml?'&':'&')); 
  • branches/1.0.x/lib/jelix/core/jUrl.class.php

    r716 r941  
    206206    */ 
    207207    public function toString ($forxml = false){ 
    208         $url = $this->scriptName.$this->pathInfo; 
     208        $url = $this->scriptName; 
     209        if(substr($this->scriptName,-1) == '/') 
     210            $url.=ltrim($this->pathInfo,'/'); 
     211        else 
     212            $url.= $this->pathInfo; 
     213 
    209214        if (count ($this->params)>0){ 
    210215            $q = http_build_query($this->params, '', ($forxml?'&':'&')); 
  • branches/1.0.x/lib/jelix/plugins/urls/significant/jSignificantUrlsCompiler.class.php

    r693 r941  
    6363            $CREATE_URL = array( 
    6464               'news~show@classic' => 
    65                   array(0,'entrypoint', https true/false, entrypoint true/false, 'selecteur handler') 
     65                  array(0,'entrypoint', https true/false, 'selecteur handler') 
    6666                  ou 
    67                   array(1,'entrypoint', https true/false, entrypoint true/false, 
     67                  array(1,'entrypoint', https true/false, 
    6868                        array('annee','mois','jour','id','titre'), // liste des paramètres de l'url à prendre en compte 
    6969                        array(true, false..), // valeur des escapes 
     
    7777 
    7878                  ou 
    79                   array(2,'entrypoint', https true/false, entrypoint true/false ); pour les clés du type "@request" 
    80                   array(3,'entrypoint', https true/false, entrypoint true/false );  pour les clés du type  "module~@request" 
     79                  array(2,'entrypoint', https true/false); pour les clés du type "@request" 
     80                  array(3,'entrypoint', https true/false);  pour les clés du type  "module~@request" 
    8181 
    8282        */ 
  • branches/1.0.x/lib/jelix/plugins/urls/significant/jSignificantUrlsCompiler.class.php

    r693 r941  
    6363            $CREATE_URL = array( 
    6464               'news~show@classic' => 
    65                   array(0,'entrypoint', https true/false, entrypoint true/false, 'selecteur handler') 
     65                  array(0,'entrypoint', https true/false, 'selecteur handler') 
    6666                  ou 
    67                   array(1,'entrypoint', https true/false, entrypoint true/false, 
     67                  array(1,'entrypoint', https true/false, 
    6868                        array('annee','mois','jour','id','titre'), // liste des paramètres de l'url à prendre en compte 
    6969                        array(true, false..), // valeur des escapes 
     
    7777 
    7878                  ou 
    79                   array(2,'entrypoint', https true/false, entrypoint true/false ); pour les clés du type "@request" 
    80                   array(3,'entrypoint', https true/false, entrypoint true/false );  pour les clés du type  "module~@request" 
     79                  array(2,'entrypoint', https true/false); pour les clés du type "@request" 
     80                  array(3,'entrypoint', https true/false);  pour les clés du type  "module~@request" 
    8181 
    8282        */ 
  • branches/1.0.x/lib/jelix/plugins/urls/significant/jSignificantUrlsCompiler.class.php

    r693 r941  
    6363            $CREATE_URL = array( 
    6464               'news~show@classic' => 
    65                   array(0,'entrypoint', https true/false, entrypoint true/false, 'selecteur handler') 
     65                  array(0,'entrypoint', https true/false, 'selecteur handler') 
    6666                  ou 
    67                   array(1,'entrypoint', https true/false, entrypoint true/false, 
     67                  array(1,'entrypoint', https true/false, 
    6868                        array('annee','mois','jour','id','titre'), // liste des paramètres de l'url à prendre en compte 
    6969                        array(true, false..), // valeur des escapes 
     
    7777 
    7878                  ou 
    79                   array(2,'entrypoint', https true/false, entrypoint true/false ); pour les clés du type "@request" 
    80                   array(3,'entrypoint', https true/false, entrypoint true/false );  pour les clés du type  "module~@request" 
     79                  array(2,'entrypoint', https true/false); pour les clés du type "@request" 
     80                  array(3,'entrypoint', https true/false);  pour les clés du type  "module~@request" 
    8181 
    8282        */ 
  • branches/1.0.x/lib/jelix/plugins/urls/significant/jSignificantUrlsCompiler.class.php

    r693 r941  
    6363            $CREATE_URL = array( 
    6464               'news~show@classic' => 
    65                   array(0,'entrypoint', https true/false, entrypoint true/false, 'selecteur handler') 
     65                  array(0,'entrypoint', https true/false, 'selecteur handler') 
    6666                  ou 
    67                   array(1,'entrypoint', https true/false, entrypoint true/false, 
     67                  array(1,'entrypoint', https true/false, 
    6868                        array('annee','mois','jour','id','titre'), // liste des paramètres de l'url à prendre en compte 
    6969                        array(true, false..), // valeur des escapes 
     
    7777 
    7878                  ou 
    79                   array(2,'entrypoint', https true/false, entrypoint true/false ); pour les clés du type "@request" 
    80                   array(3,'entrypoint', https true/false, entrypoint true/false );  pour les clés du type  "module~@request" 
     79                  array(2,'entrypoint', https true/false); pour les clés du type "@request" 
     80                  array(3,'entrypoint', https true/false);  pour les clés du type  "module~@request" 
    8181 
    8282        */ 
  • branches/1.0.x/lib/jelix/plugins/urls/significant/significant.urls.php

    r728 r941  
    326326        /* 
    327327        urlinfo = 
    328             array(0,'entrypoint', https true/false, entrypoint true/false,'selecteur handler') 
     328            array(0,'entrypoint', https true/false,'selecteur handler') 
    329329            ou 
    330             array(1,'entrypoint', https true/false, entrypoint true/false 
     330            array(1,'entrypoint', https true/false,  
    331331                    array('annee','mois','jour','id','titre'), // liste des paramètres de l'url à prendre en compte 
    332332                    array(true, false..), // valeur des escapes 
     
    335335                    ) 
    336336            ou 
    337             array(2,'entrypoint', https true/false, entrypoint true/false); pour les clés du type "@request" 
    338             array(3,'entrypoint', https true/false, entrypoint true/false); pour les clés du type "module~@request" 
     337            array(2,'entrypoint', https true/false,); pour les clés du type "@request" 
     338            array(3,'entrypoint', https true/false); pour les clés du type "module~@request" 
    339339            array(4, array(1,..), array(1,..)...); 
    340340        */ 
     
    398398                $url->delParam($param); 
    399399            } 
    400             if($urlinfo[1]) 
     400            //if($urlinfo[1]) 
    401401                $url->pathInfo = $result; 
    402             else 
    403                 $url->pathInfo = substr($result,1); 
     402            //else 
     403                //$url->pathInfo = substr($result,1); 
    404404            if($urlinfo[6]) 
    405405                $url->setParam('action',$action); 
  • branches/1.0.x/lib/jelix/plugins/urls/significant/significant.urls.php

    r728 r941  
    326326        /* 
    327327        urlinfo = 
    328             array(0,'entrypoint', https true/false, entrypoint true/false,'selecteur handler') 
     328            array(0,'entrypoint', https true/false,'selecteur handler') 
    329329            ou 
    330             array(1,'entrypoint', https true/false, entrypoint true/false 
     330            array(1,'entrypoint', https true/false,  
    331331                    array('annee','mois','jour','id','titre'), // liste des paramètres de l'url à prendre en compte 
    332332                    array(true, false..), // valeur des escapes 
     
    335335                    ) 
    336336            ou 
    337             array(2,'entrypoint', https true/false, entrypoint true/false); pour les clés du type "@request" 
    338             array(3,'entrypoint', https true/false, entrypoint true/false); pour les clés du type "module~@request" 
     337            array(2,'entrypoint', https true/false,); pour les clés du type "@request" 
     338            array(3,'entrypoint', https true/false); pour les clés du type "module~@request" 
    339339            array(4, array(1,..), array(1,..)...); 
    340340        */ 
     
    398398                $url->delParam($param); 
    399399            } 
    400             if($urlinfo[1]) 
     400            //if($urlinfo[1]) 
    401401                $url->pathInfo = $result; 
    402             else 
    403                 $url->pathInfo = substr($result,1); 
     402            //else 
     403                //$url->pathInfo = substr($result,1); 
    404404            if($urlinfo[6]) 
    405405                $url->setParam('action',$action); 
  • branches/1.0.x/lib/jelix/plugins/urls/significant/significant.urls.php

    r728 r941  
    326326        /* 
    327327        urlinfo = 
    328             array(0,'entrypoint', https true/false, entrypoint true/false,'selecteur handler') 
     328            array(0,'entrypoint', https true/false,'selecteur handler') 
    329329            ou 
    330             array(1,'entrypoint', https true/false, entrypoint true/false 
     330            array(1,'entrypoint', https true/false,  
    331331                    array('annee','mois','jour','id','titre'), // liste des paramètres de l'url à prendre en compte 
    332332                    array(true, false..), // valeur des escapes 
     
    335335                    ) 
    336336            ou 
    337             array(2,'entrypoint', https true/false, entrypoint true/false); pour les clés du type "@request" 
    338             array(3,'entrypoint', https true/false, entrypoint true/false); pour les clés du type "module~@request" 
     337            array(2,'entrypoint', https true/false,); pour les clés du type "@request" 
     338            array(3,'entrypoint', https true/false); pour les clés du type "module~@request" 
    339339            array(4, array(1,..), array(1,..)...); 
    340340        */ 
     
    398398                $url->delParam($param); 
    399399            } 
    400             if($urlinfo[1]) 
     400            //if($urlinfo[1]) 
    401401                $url->pathInfo = $result; 
    402             else 
    403                 $url->pathInfo = substr($result,1); 
     402            //else 
     403                //$url->pathInfo = substr($result,1); 
    404404            if($urlinfo[6]) 
    405405                $url->setParam('action',$action); 
  • branches/1.0.x/lib/jelix/plugins/urls/significant/significant.urls.php

    r728 r941  
    326326        /* 
    327327        urlinfo = 
    328             array(0,'entrypoint', https true/false, entrypoint true/false,'selecteur handler') 
     328            array(0,'entrypoint', https true/false,'selecteur handler') 
    329329            ou 
    330             array(1,'entrypoint', https true/false, entrypoint true/false 
     330            array(1,'entrypoint', https true/false,  
    331331                    array('annee','mois','jour','id','titre'), // liste des paramètres de l'url à prendre en compte 
    332332                    array(true, false..), // valeur des escapes 
     
    335335                    ) 
    336336            ou 
    337             array(2,'entrypoint', https true/false, entrypoint true/false); pour les clés du type "@request" 
    338             array(3,'entrypoint', https true/false, entrypoint true/false); pour les clés du type "module~@request" 
     337            array(2,'entrypoint', https true/false,); pour les clés du type "@request" 
     338            array(3,'entrypoint', https true/false); pour les clés du type "module~@request" 
    339339            array(4, array(1,..), array(1,..)...); 
    340340        */ 
     
    398398                $url->delParam($param); 
    399399            } 
    400             if($urlinfo[1]) 
     400            //if($urlinfo[1]) 
    401401                $url->pathInfo = $result; 
    402             else 
    403                 $url->pathInfo = substr($result,1); 
     402            //else 
     403                //$url->pathInfo = substr($result,1); 
    404404            if($urlinfo[6]) 
    405405                $url->setParam('action',$action); 
  • branches/1.0.x/testapp/modules/jelix_tests/tests/core.urls_generation.html.php

    r716 r941  
    235235      $urlList[]= array('jelix_tests~default:hello3', array()); 
    236236      $urlList[]= array('jelix_tests~hello3', array()); 
     237      $urlList[]= array('jelix_tests~urlsig:bug599', array('first'=>'premier',  'second'=>'deuxieme')); 
    237238 
    238239      $trueResult=array( 
     
    258259          "/index.php/hello3", 
    259260          "/index.php/hello3", 
     261          "/withhandler/premier/deuxieme", 
    260262       ); 
    261263 
     
    287289          "/index/hello3", 
    288290          "/index/hello3", 
     291          "/withhandler/premier/deuxieme", 
    289292       ); 
    290293      $trueResult[11]='https://'.$_SERVER['HTTP_HOST'].$trueResult[11]; 
  • branches/1.0.x/testapp/modules/jelix_tests/tests/core.urls_generation.html.php

    r716 r941  
    235235      $urlList[]= array('jelix_tests~default:hello3', array()); 
    236236      $urlList[]= array('jelix_tests~hello3', array()); 
     237      $urlList[]= array('jelix_tests~urlsig:bug599', array('first'=>'premier',  'second'=>'deuxieme')); 
    237238 
    238239      $trueResult=array( 
     
    258259          "/index.php/hello3", 
    259260          "/index.php/hello3", 
     261          "/withhandler/premier/deuxieme", 
    260262       ); 
    261263 
     
    287289          "/index/hello3", 
    288290          "/index/hello3", 
     291          "/withhandler/premier/deuxieme", 
    289292       ); 
    290293      $trueResult[11]='https://'.$_SERVER['HTTP_HOST'].$trueResult[11]; 
  • branches/1.0.x/testapp/modules/jelix_tests/tests/core.urls_generation.html.php

    r716 r941  
    235235      $urlList[]= array('jelix_tests~default:hello3', array()); 
    236236      $urlList[]= array('jelix_tests~hello3', array()); 
     237      $urlList[]= array('jelix_tests~urlsig:bug599', array('first'=>'premier',  'second'=>'deuxieme')); 
    237238 
    238239      $trueResult=array( 
     
    258259          "/index.php/hello3", 
    259260          "/index.php/hello3", 
     261          "/withhandler/premier/deuxieme", 
    260262       ); 
    261263 
     
    287289          "/index/hello3", 
    288290          "/index/hello3", 
     291          "/withhandler/premier/deuxieme", 
    289292       ); 
    290293      $trueResult[11]='https://'.$_SERVER['HTTP_HOST'].$trueResult[11]; 
  • branches/1.0.x/testapp/modules/jelix_tests/tests/core.urls_generation.html.php

    r716 r941  
    235235      $urlList[]= array('jelix_tests~default:hello3', array()); 
    236236      $urlList[]= array('jelix_tests~hello3', array()); 
     237      $urlList[]= array('jelix_tests~urlsig:bug599', array('first'=>'premier',  'second'=>'deuxieme')); 
    237238 
    238239      $trueResult=array( 
     
    258259          "/index.php/hello3", 
    259260          "/index.php/hello3", 
     261          "/withhandler/premier/deuxieme", 
    260262       ); 
    261263 
     
    287289          "/index/hello3", 
    288290          "/index/hello3", 
     291          "/withhandler/premier/deuxieme", 
    289292       ); 
    290293      $trueResult[11]='https://'.$_SERVER['HTTP_HOST'].$trueResult[11]; 
  • branches/1.0.x/testapp/var/config/urls.xml

    r691 r941  
    6060       <url handler="urlsig" module="jelix_tests" action="urlsig:url4" /> 
    6161    </classicentrypoint> 
     62    <classicentrypoint name="invisible"  noentrypoint="true"> 
     63        <url handler="urlsig" module="jelix_tests" action="urlsig:bug599"/> 
     64    </classicentrypoint> 
    6265 
    6366    <classicentrypoint name="news"> 
  • branches/1.0.x/testapp/var/config/urls.xml

    r691 r941  
    6060       <url handler="urlsig" module="jelix_tests" action="urlsig:url4" /> 
    6161    </classicentrypoint> 
     62    <classicentrypoint name="invisible"  noentrypoint="true"> 
     63        <url handler="urlsig" module="jelix_tests" action="urlsig:bug599"/> 
     64    </classicentrypoint> 
    6265 
    6366    <classicentrypoint name="news"> 
  • branches/1.0.x/testapp/var/config/urls.xml

    r691 r941  
    6060       <url handler="urlsig" module="jelix_tests" action="urlsig:url4" /> 
    6161    </classicentrypoint> 
     62    <classicentrypoint name="invisible"  noentrypoint="true"> 
     63        <url handler="urlsig" module="jelix_tests" action="urlsig:bug599"/> 
     64    </classicentrypoint> 
    6265 
    6366    <classicentrypoint name="news"> 
  • branches/1.0.x/testapp/var/config/urls.xml

    r691 r941  
    6060       <url handler="urlsig" module="jelix_tests" action="urlsig:url4" /> 
    6161    </classicentrypoint> 
     62    <classicentrypoint name="invisible"  noentrypoint="true"> 
     63        <url handler="urlsig" module="jelix_tests" action="urlsig:bug599"/> 
     64    </classicentrypoint> 
    6265 
    6366    <classicentrypoint name="news"> 
  • trunk/lib/jelix/core/jUrl.class.php

    r839 r941  
    206206    */ 
    207207    public function toString ($forxml = false){ 
    208         $url = $this->scriptName.$this->pathInfo; 
     208        $url = $this->scriptName; 
     209        if(substr($this->scriptName,-1) == '/') 
     210            $url.=ltrim($this->pathInfo,'/'); 
     211        else 
     212            $url.= $this->pathInfo; 
     213 
    209214        if (count ($this->params)>0){ 
    210215            $q = http_build_query($this->params, '', ($forxml?'&amp;':'&')); 
  • trunk/lib/jelix/core/jUrl.class.php

    r839 r941  
    206206    */ 
    207207    public function toString ($forxml = false){ 
    208         $url = $this->scriptName.$this->pathInfo; 
     208        $url = $this->scriptName; 
     209        if(substr($this->scriptName,-1) == '/') 
     210            $url.=ltrim($this->pathInfo,'/'); 
     211        else 
     212            $url.= $this->pathInfo; 
     213 
    209214        if (count ($this->params)>0){ 
    210215            $q = http_build_query($this->params, '', ($forxml?'&amp;':'&')); 
  • trunk/lib/jelix/core/jUrl.class.php

    r839 r941  
    206206    */ 
    207207    public function toString ($forxml = false){ 
    208         $url = $this->scriptName.$this->pathInfo; 
     208        $url = $this->scriptName; 
     209        if(substr($this->scriptName,-1) == '/') 
     210            $url.=ltrim($this->pathInfo,'/'); 
     211        else 
     212            $url.= $this->pathInfo; 
     213 
    209214        if (count ($this->params)>0){ 
    210215            $q = http_build_query($this->params, '', ($forxml?'&amp;':'&')); 
  • trunk/lib/jelix/core/jUrl.class.php

    r839 r941  
    206206    */ 
    207207    public function toString ($forxml = false){ 
    208         $url = $this->scriptName.$this->pathInfo; 
     208        $url = $this->scriptName; 
     209        if(substr($this->scriptName,-1) == '/') 
     210            $url.=ltrim($this->pathInfo,'/'); 
     211        else 
     212            $url.= $this->pathInfo; 
     213 
    209214        if (count ($this->params)>0){ 
    210215            $q = http_build_query($this->params, '', ($forxml?'&amp;':'&')); 
  • trunk/lib/jelix/plugins/urls/significant/jSignificantUrlsCompiler.class.php

    r693 r941  
    6363            $CREATE_URL = array( 
    6464               'news~show@classic' => 
    65                   array(0,'entrypoint', https true/false, entrypoint true/false, 'selecteur handler') 
     65                  array(0,'entrypoint', https true/false, 'selecteur handler') 
    6666                  ou 
    67                   array(1,'entrypoint', https true/false, entrypoint true/false, 
     67                  array(1,'entrypoint', https true/false, 
    6868                        array('annee','mois','jour','id','titre'), // liste des paramètres de l'url à prendre en compte 
    6969                        array(true, false..), // valeur des escapes 
     
    7777 
    7878                  ou 
    79                   array(2,'entrypoint', https true/false, entrypoint true/false ); pour les clés du type "@request" 
    80                   array(3,'entrypoint', https true/false, entrypoint true/false );  pour les clés du type  "module~@request" 
     79                  array(2,'entrypoint', https true/false); pour les clés du type "@request" 
     80                  array(3,'entrypoint', https true/false);  pour les clés du type  "module~@request" 
    8181 
    8282        */ 
  • trunk/lib/jelix/plugins/urls/significant/jSignificantUrlsCompiler.class.php

    r693 r941  
    6363            $CREATE_URL = array( 
    6464               'news~show@classic' => 
    65                   array(0,'entrypoint', https true/false, entrypoint true/false, 'selecteur handler') 
     65                  array(0,'entrypoint', https true/false, 'selecteur handler') 
    6666                  ou 
    67                   array(1,'entrypoint', https true/false, entrypoint true/false, 
     67                  array(1,'entrypoint', https true/false, 
    6868                        array('annee','mois','jour','id','titre'), // liste des paramètres de l'url à prendre en compte 
    6969                        array(true, false..), // valeur des escapes 
     
    7777 
    7878                  ou 
    79                   array(2,'entrypoint', https true/false, entrypoint true/false ); pour les clés du type "@request" 
    80                   array(3,'entrypoint', https true/false, entrypoint true/false );  pour les clés du type  "module~@request" 
     79                  array(2,'entrypoint', https true/false); pour les clés du type "@request" 
     80                  array(3,'entrypoint', https true/false);  pour les clés du type  "module~@request" 
    8181 
    8282        */ 
  • trunk/lib/jelix/plugins/urls/significant/jSignificantUrlsCompiler.class.php

    r693 r941  
    6363            $CREATE_URL = array( 
    6464               'news~show@classic' => 
    65                   array(0,'entrypoint', https true/false, entrypoint true/false, 'selecteur handler') 
     65                  array(0,'entrypoint', https true/false, 'selecteur handler') 
    6666                  ou 
    67                   array(1,'entrypoint', https true/false, entrypoint true/false, 
     67                  array(1,'entrypoint', https true/false, 
    6868                        array('annee','mois','jour','id','titre'), // liste des paramètres de l'url à prendre en compte 
    6969                        array(true, false..), // valeur des escapes 
     
    7777 
    7878                  ou 
    79                   array(2,'entrypoint', https true/false, entrypoint true/false ); pour les clés du type "@request" 
    80                   array(3,'entrypoint', https true/false, entrypoint true/false );  pour les clés du type  "module~@request" 
     79                  array(2,'entrypoint', https true/false); pour les clés du type "@request" 
     80                  array(3,'entrypoint', https true/false);  pour les clés du type  "module~@request" 
    8181 
    8282        */ 
  • trunk/lib/jelix/plugins/urls/significant/jSignificantUrlsCompiler.class.php

    r693 r941  
    6363            $CREATE_URL = array( 
    6464               'news~show@classic' => 
    65                   array(0,'entrypoint', https true/false, entrypoint true/false, 'selecteur handler') 
     65                  array(0,'entrypoint', https true/false, 'selecteur handler') 
    6666                  ou 
    67                   array(1,'entrypoint', https true/false, entrypoint true/false, 
     67                  array(1,'entrypoint', https true/false, 
    6868                        array('annee','mois','jour','id','titre'), // liste des paramètres de l'url à prendre en compte 
    6969                        array(true, false..), // valeur des escapes 
     
    7777 
    7878                  ou 
    79                   array(2,'entrypoint', https true/false, entrypoint true/false ); pour les clés du type "@request" 
    80                   array(3,'entrypoint', https true/false, entrypoint true/false );  pour les clés du type  "module~@request" 
     79                  array(2,'entrypoint', https true/false); pour les clés du type "@request" 
     80                  array(3,'entrypoint', https true/false);  pour les clés du type  "module~@request" 
    8181 
    8282        */ 
  • trunk/lib/jelix/plugins/urls/significant/significant.urls.php

    r839 r941  
    326326        /* 
    327327        urlinfo = 
    328             array(0,'entrypoint', https true/false, entrypoint true/false,'selecteur handler') 
     328            array(0,'entrypoint', https true/false,'selecteur handler') 
    329329            ou 
    330             array(1,'entrypoint', https true/false, entrypoint true/false 
     330            array(1,'entrypoint', https true/false,  
    331331                    array('annee','mois','jour','id','titre'), // liste des paramètres de l'url à prendre en compte 
    332332                    array(true, false..), // valeur des escapes 
     
    335335                    ) 
    336336            ou 
    337             array(2,'entrypoint', https true/false, entrypoint true/false); pour les clés du type "@request" 
    338             array(3,'entrypoint', https true/false, entrypoint true/false); pour les clés du type "module~@request" 
     337            array(2,'entrypoint', https true/false,); pour les clés du type "@request" 
     338            array(3,'entrypoint', https true/false); pour les clés du type "module~@request" 
    339339            array(4, array(1,..), array(1,..)...); 
    340340        */ 
     
    398398                $url->delParam($param); 
    399399            } 
    400             if($urlinfo[1]) 
     400            //if($urlinfo[1]) 
    401401                $url->pathInfo = $result; 
    402             else 
    403                 $url->pathInfo = substr($result,1); 
     402            //else 
     403                //$url->pathInfo = substr($result,1); 
    404404            if($urlinfo[6]) 
    405405                $url->setParam('action',$action); 
  • trunk/lib/jelix/plugins/urls/significant/significant.urls.php

    r839 r941  
    326326        /* 
    327327        urlinfo = 
    328             array(0,'entrypoint', https true/false, entrypoint true/false,'selecteur handler') 
     328            array(0,'entrypoint', https true/false,'selecteur handler') 
    329329            ou 
    330             array(1,'entrypoint', https true/false, entrypoint true/false 
     330            array(1,'entrypoint', https true/false,  
    331331                    array('annee','mois','jour','id','titre'), // liste des paramètres de l'url à prendre en compte 
    332332                    array(true, false..), // valeur des escapes 
     
    335335                    ) 
    336336            ou 
    337             array(2,'entrypoint', https true/false, entrypoint true/false); pour les clés du type "@request" 
    338             array(3,'entrypoint', https true/false, entrypoint true/false); pour les clés du type "module~@request" 
     337            array(2,'entrypoint', https true/false,); pour les clés du type "@request" 
     338            array(3,'entrypoint', https true/false); pour les clés du type "module~@request" 
    339339            array(4, array(1,..), array(1,..)...); 
    340340        */ 
     
    398398                $url->delParam($param); 
    399399            } 
    400             if($urlinfo[1]) 
     400            //if($urlinfo[1]) 
    401401                $url->pathInfo = $result; 
    402             else 
    403                 $url->pathInfo = substr($result,1); 
     402            //else 
     403                //$url->pathInfo = substr($result,1); 
    404404            if($urlinfo[6]) 
    405405                $url->setParam('action',$action); 
  • trunk/lib/jelix/plugins/urls/significant/significant.urls.php

    r839 r941  
    326326        /* 
    327327        urlinfo = 
    328             array(0,'entrypoint', https true/false, entrypoint true/false,'selecteur handler') 
     328            array(0,'entrypoint', https true/false,'selecteur handler') 
    329329            ou 
    330             array(1,'entrypoint', https true/false, entrypoint true/false 
     330            array(1,'entrypoint', https true/false,  
    331331