Ticket #143 (new задача)

Opened 17 months ago

Валидатор для поля "Сайт" в профиле

Reported by: Степан Танасийчук <stepan.tanasiychuk@…> Owned by: ort
Priority: нормальный Component: общее
Version: 0.4 Keywords:
Cc:

Description

по длине проверять урл как-то несерьезно

			/**
			 * Проверяем сайт
			 */
			if (func_check(getRequest('profile_site'),'text',3,200)) {
				$this->oUserCurrent->setProfileSite(getRequest('profile_site'));
			} else {
				$this->oUserCurrent->setProfileSite(null);
			} 

можно использовать Zend_Validate_Hostname  http://framework.zend.com/manual/en/zend.validate.set.html#zend.validate.set.hostname

Attachments

Add/Change #143 (Валидатор для поля "Сайт" в профиле)

Author


E-mail address and user name can be saved in the Preferences.


Action
as new
 
Note: See TracTickets for help on using tickets.