aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/HttpUtils.php
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2016-05-05 13:28:43 +0200
committerArthurHoaro <arthur@hoa.ro>2016-05-05 13:28:43 +0200
commitcaa69b585381cc1c22df3dbb9c943855b8f13a70 (patch)
tree7fcd56578f8e570a7517648c82abe29af4ec8593 /application/HttpUtils.php
parent86deafe0ff5a22a37255546cf82325e89bf272b1 (diff)
downloadShaarli-caa69b585381cc1c22df3dbb9c943855b8f13a70.tar.gz
Shaarli-caa69b585381cc1c22df3dbb9c943855b8f13a70.tar.zst
Shaarli-caa69b585381cc1c22df3dbb9c943855b8f13a70.zip
typo
Diffstat (limited to 'application/HttpUtils.php')
-rw-r--r--application/HttpUtils.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/application/HttpUtils.php b/application/HttpUtils.php
index 0e1ce879..c84ba6f0 100644
--- a/application/HttpUtils.php
+++ b/application/HttpUtils.php
@@ -27,7 +27,7 @@
27function get_http_response($url, $timeout = 30, $maxBytes = 4194304) 27function get_http_response($url, $timeout = 30, $maxBytes = 4194304)
28{ 28{
29 $urlObj = new Url($url); 29 $urlObj = new Url($url);
30 $cleanUrl = $urlObj->indToAscii(); 30 $cleanUrl = $urlObj->idnToAscii();
31 31
32 if (! filter_var($cleanUrl, FILTER_VALIDATE_URL) || ! $urlObj->isHttp()) { 32 if (! filter_var($cleanUrl, FILTER_VALIDATE_URL) || ! $urlObj->isHttp()) {
33 return array(array(0 => 'Invalid HTTP Url'), false); 33 return array(array(0 => 'Invalid HTTP Url'), false);
@@ -70,7 +70,7 @@ function get_http_response($url, $timeout = 30, $maxBytes = 4194304)
70 * Retrieve HTTP headers, following n redirections (temporary and permanent ones). 70 * Retrieve HTTP headers, following n redirections (temporary and permanent ones).
71 * 71 *
72 * @param string $url initial URL to reach. 72 * @param string $url initial URL to reach.
73 * @param int $redirectionLimit max redirection follow.. 73 * @param int $redirectionLimit max redirection follow.
74 * 74 *
75 * @return array HTTP headers, or false if it failed. 75 * @return array HTTP headers, or false if it failed.
76 */ 76 */