Hi all

This is my problem.

When i want to route with a parametrer slash "/" like :var =
"subprojectslug/pageslug" symfony encoded slash to %2f and give a 404
error because apache desactivate the AllowEncodedSlashes for security

I activate "AllowEncodedSlashes On"

But i can't match url in a redirect and the URL is too ugly.

Solution with AllowEncodedSlashes Off , go to core: sfRouting.class

protected function fixGeneratedUrl($url, $absolute = false)
{
...
$url = str_ireplace('%2F', '/', $url);

    return $url;
}

This works... but, is a good solution? there are a better solution? is
a dangerous fix and can affect to my project in other side?

Thx
Javier Sanchez Lopez

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to