From 839b585aeee2d49c081242fc789cb2cedfefc780 Mon Sep 17 00:00:00 2001 From: shish Date: Sat, 29 Sep 2007 22:49:56 +0000 Subject: [PATCH] set curl user-agent and referrer git-svn-id: file:///home/shish/svn/shimmie2/branches/branch_2.1@503 7f39781d-f577-437e-ae19-be835c7a54ca --- ext/upload/main.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext/upload/main.php b/ext/upload/main.php index 217018cf..e1d4580c 100644 --- a/ext/upload/main.php +++ b/ext/upload/main.php @@ -147,6 +147,8 @@ class Upload extends Extension { curl_setopt($ch, CURLOPT_FILE, $fp); curl_setopt($ch, CURLOPT_HEADER, 0); + curl_setopt($ch, CURLOPT_REFERER, $url); + curl_setopt($ch, CURLOPT_USERAGENT, "Shimmie-".VERSION); curl_exec($ch); curl_close($ch);