Zend Framework: validation of hostname -


i check hostname. for exapmle: www.site.ru, site.ru, http://site.ru.

these variants correct. but: http://site.ru/ zf sets not correct.

how check hostname shown above via hostname validator?

www.site.ru, site.ru domains while http://www.site.ru uri need manually strip protocol/scheme part, way site.ru/folder/ correct uri correct hostname. wrote filter zend framework, allow prepend http:// hostname. maybe helps


Comments

Popular posts from this blog

Javascript line number mapping -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -