Details
-
Bug
-
Resolution: Fixed
-
Medium
-
3.8.7, 3.9.1, 4.1.4, 4.2.0, 4.3.0
-
None
Description
If you send an HTTP request using eZHTTPTool::sendHTTPRequest() to an URL with a domain name containing a dash , it's misunderpreted and doesn't get executed.
To fix it, we just need to add a dash in the regexp on line 228 (in 3.9.1 stable) of lib/ezutils/classes/ezhttptool.php.
"/^((http[s]?:\/\/)([a-zA-Z0-9_.]+))?([\/]?[~]?(\.?[^.]+[~]?)*)/i"
becomes
"/^((http[s]?:\/\/)([a-zA-Z0-9_.-]+))?([\/]?[~]?(\.?[^.]+[~]?)*)/i"