a1af157410
Fix fetch_file_contents, so that it returns the contents even if the data isn't an image. This is needed because the get_favicon_url function tries to download the webpage using this function, to see if there is a favicon in the page. The function now takes an optional $type parameter. This parameter control if the calling function cares about the content-type, or if the function should just return everything. If the $type parameter is set, the content-type should contain the string contained in $type, otherwise the function returns false. The second problem solved with this patch, is that the temporary file that should contain the image was empty in some cases. I never found out why this happended, but as curl_exec is capable of returning the fetched data, thus eliminating the need for the temporary file all together, the function have been changed to use this way of obtaining the data. The last problem fixed by this patch is that curl will now follow redirects. Author: Klaus S. Madsen <ksm@42.dk> |
||
---|---|---|
api | ||
extras/button | ||
help | ||
icons | ||
images | ||
lib | ||
locale | ||
mobile | ||
modules | ||
schema | ||
templates | ||
themes | ||
utils | ||
LICENSE | ||
README | ||
backend.php | ||
compat.php | ||
config.php-dist | ||
db-prefs.php | ||
db.php | ||
errors.php | ||
feedlist.js | ||
functions.js | ||
functions.php | ||
gears_init.js | ||
image.php | ||
index.php | ||
localized_js.php | ||
localized_schema.php | ||
login_form.php | ||
logout.php | ||
manifest.json.php | ||
offline.js | ||
opml.php | ||
prefs.js | ||
prefs.php | ||
register.php | ||
rss.xsl | ||
sanity_check.php | ||
sessions.php | ||
tt-rss.css | ||
tt-rss.js | ||
tt-rss.php | ||
update-translations.sh | ||
update.php | ||
update_daemon.php | ||
update_daemon2.php | ||
update_daemon_loop.php | ||
update_feedbrowser.php | ||
update_feeds.php | ||
utility.css | ||
version.php | ||
viewfeed.js |
README
Tiny Tiny RSS ============= Web-based news feed aggregator, designed to allow you to read news from any location, while feeling as close to a real desktop application as possible. http://tt-rss.org Licensed under GNU GPL version 2 Copyright (c) 2005-2010 Andrew Dolgov (unless explicitly stated otherwise). Requirements ============ * Compatible web browser (http://tt-rss.org/wiki/CompatibleBrowsers) * Web server, for example Apache * PHP (with support for mbstring functions) * PostgreSQL (tested on 8.3) or MySQL (InnoDB and version 4.1+ required) Installation Notes ================== http://tt-rss.org/wiki/InstallationNotes See also ======== * FAQ: http://tt-rss.org/wiki/FrequentlyAskedQuestions * Forum: http://tt-rss.org/forum * Wiki: http://tt-rss.org/wiki/WikiStart Contact ======= Send your questions, comments, patches to Andrew Dolgov <cthulhoo(at)gmail.com>