Ticket #2482: req_param_garble.patch
| File req_param_garble.patch, 2.5 kB (added by manickam, 1 year ago) |
|---|
-
lib/controller/sfWebController.class.php
old new 93 93 $parameters['action'] = sfConfig::get('sf_default_action'); 94 94 } 95 95 96 $new_params = array(); 97 foreach ($parameters as $param_name => $param_value) 98 { 99 if( $param_value !== '') 100 { 101 $new_params[ $param_name ] = $param_value; 102 } 103 } 104 $parameters = $new_params; 105 96 106 // routing to generate path 97 107 $url .= $this->context->getRouting()->generate($route_name, $parameters, $querydiv, $divider, $equals); 98 108 -
lib/util/sfSimpleAutoload.class.php
old new 141 141 require_once(dirname(__FILE__).'/sfFinder.class.php'); 142 142 143 143 $finder = sfFinder::type('file')->ignore_version_control()->follow_link()->name('*'.$ext); 144 foreach (glob($dir) as $dir) 144 145 if (($dirs = glob($dir))) 145 146 { 146 if (in_array($dir, $this->dirs))147 foreach (glob($dir) as $dir) 147 148 { 148 if ( $this->cacheLoaded)149 if (in_array($dir, $this->dirs)) 149 150 { 150 continue; 151 if ($this->cacheLoaded) 152 { 153 continue; 154 } 151 155 } 156 else 157 { 158 $this->dirs[] = $dir; 159 } 160 161 $this->cacheChanged = true; 162 $this->addFiles($finder->in($dir), false); 152 163 } 153 else154 {155 $this->dirs[] = $dir;156 }157 158 $this->cacheChanged = true;159 $this->addFiles($finder->in($dir), false);160 164 } 161 165 } 162 166