dustin10/VichUploaderBundle — pull request #39 by rodgermd (2012-08-20 10:30:56+00:00)
Title: Fixed a bug, when project root dir contains 'web' (same as webdirname) in the full path

Fixed a bug, when project root dir contains 'web' (same as webdirname) in the full path
For example, the project is located in '/home/user/web/project'
webdirname is a default 'web'
The resulting dir name will be in this case wrong, because strpos will return you th eindex of first 'web'.

I think this check should be checked also for '/web/'.