aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-05-26 23:10:40 -0700
committerFriendika <info@friendika.com>2011-05-26 23:10:40 -0700
commitecb300177cf6996170a77880d771f0aa20f2cf11 (patch)
treeebf8fd7b06c66c7f45e3908d15347ddda3a75542 /boot.php
parent341f853b042f0f4dcdc5e256c46a25c402d2de2e (diff)
downloadvolse-hubzilla-ecb300177cf6996170a77880d771f0aa20f2cf11.tar.gz
volse-hubzilla-ecb300177cf6996170a77880d771f0aa20f2cf11.tar.bz2
volse-hubzilla-ecb300177cf6996170a77880d771f0aa20f2cf11.zip
troublesome feed was a 307 redirect. We didn't recognise 307
Diffstat (limited to 'boot.php')
-rw-r--r--boot.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/boot.php b/boot.php
index 7d96eac9f..104e20f56 100644
--- a/boot.php
+++ b/boot.php
@@ -682,7 +682,7 @@ function fetch_url($url,$binary = false, &$redirects = 0) {
$s = substr($s,strlen($header)+4);
$header = substr($s,0,strpos($s,"\r\n\r\n"));
}
- if($http_code == 301 || $http_code == 302 || $http_code == 303) {
+ if($http_code == 301 || $http_code == 302 || $http_code == 303 || $http_code == 307) {
$matches = array();
preg_match('/(Location:|URI:)(.*?)\n/', $header, $matches);
$url = trim(array_pop($matches));
@@ -2196,12 +2196,13 @@ function smilies($s) {
$a = get_app();
return str_replace(
- array( '&lt;3', '&lt;/3', '&lt;\\3', ':-)', ';-)', ':-(', ':(', ':-P', ':P', ':-"', ':-x', ':-X', ':-D', '8-|', '8-O'),
+ array( '&lt;3', '&lt;/3', '&lt;\\3', ':-)', ':)', ';-)', ':-(', ':(', ':-P', ':P', ':-"', ':-x', ':-X', ':-D', '8-|', '8-O'),
array(
'<img src="' . $a->get_baseurl() . '/images/smiley-heart.gif" alt="<3" />',
'<img src="' . $a->get_baseurl() . '/images/smiley-brokenheart.gif" alt="</3" />',
'<img src="' . $a->get_baseurl() . '/images/smiley-brokenheart.gif" alt="<\\3" />',
'<img src="' . $a->get_baseurl() . '/images/smiley-smile.gif" alt=":-)" />',
+ '<img src="' . $a->get_baseurl() . '/images/smiley-smile.gif" alt=":)" />',
'<img src="' . $a->get_baseurl() . '/images/smiley-wink.gif" alt=";-)" />',
'<img src="' . $a->get_baseurl() . '/images/smiley-frown.gif" alt=":-(" />',
'<img src="' . $a->get_baseurl() . '/images/smiley-frown.gif" alt=":(" />',