File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -46,8 +46,8 @@ function get_skin($user)
46
46
$ result = curl_exec ($ ch );
47
47
$ status = curl_getinfo ($ ch , CURLINFO_HTTP_CODE );
48
48
if ($ status == 301 ) {
49
- preg_match_all ('/location:(.*)/i ' , $ result , $ matches );
50
- curl_setopt ($ ch , CURLOPT_URL , trim (array_pop ( $ matches [1 ]) ));
49
+ preg_match ('/location:(.*)/i ' , $ result , $ matches );
50
+ curl_setopt ($ ch , CURLOPT_URL , trim ($ matches [1 ]));
51
51
curl_setopt ($ ch , CURLOPT_HEADER , 0 );
52
52
curl_setopt ($ ch , CURLOPT_NOBODY , 0 );
53
53
$ result = curl_exec ($ ch );
Original file line number Diff line number Diff line change @@ -44,8 +44,8 @@ function get_skin($user)
44
44
$ result = curl_exec ($ ch );
45
45
$ status = curl_getinfo ($ ch , CURLINFO_HTTP_CODE );
46
46
if ($ status == 301 ) {
47
- preg_match_all ('/location:(.*)/i ' , $ result , $ matches );
48
- curl_setopt ($ ch , CURLOPT_URL , trim (array_pop ( $ matches [1 ]) ));
47
+ preg_match ('/location:(.*)/i ' , $ result , $ matches );
48
+ curl_setopt ($ ch , CURLOPT_URL , trim ($ matches [1 ]));
49
49
curl_setopt ($ ch , CURLOPT_HEADER , 0 );
50
50
curl_setopt ($ ch , CURLOPT_NOBODY , 0 );
51
51
$ result = curl_exec ($ ch );
You can’t perform that action at this time.
0 commit comments