- تاریخ ثبتنام
- 2020-06-26
- نوشتهها
- 21,417
- راهحلها
- 27
- پسندها
- 3,264
- امتیازها
- 113
- سن
- 27
- محل سکونت
- England
- وب سایت
- xenforo.xyz
Problem:
When using the
Test Cases:
Suggested Fix:
Apply the following below
PHP:
When using the
XF\Validator\Url
class to validate URLs, entering a non-www URL does not correctly apply the schema.Test Cases:
https://google.com
works.www.google.com
works.google.com
does not, and asks to input a valid URL.Suggested Fix:
Apply the following below
else if (substr(strtolower($value), 0, 4) == 'www.')
PHP: