1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2026-01-05 11:39:16 +00:00
Andrew Dolgov a1af157410 Fix several problems with image download
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>
2010-04-22 10:10:49 +04:00
2010-04-19 09:50:43 +04:00
2009-01-31 15:42:33 +03:00
2009-12-21 21:28:18 +03:00
2010-04-22 10:05:19 +04:00
2008-05-18 08:33:11 +01:00
2010-02-16 13:28:31 +03:00
2007-05-19 06:09:25 +01:00
2010-01-13 21:33:31 +03:00
2010-02-03 15:07:21 +03:00
2010-02-03 16:35:16 +03:00
2009-02-02 13:45:33 +03:00
2009-01-22 14:31:24 +01:00
2007-03-05 09:37:13 +01:00
2008-12-29 06:43:39 +01:00
2010-01-25 23:25:56 +03:00
2007-03-01 13:34:03 +01:00
2010-02-03 16:35:16 +03:00
2010-04-12 22:38:51 -04:00
2010-01-13 13:48:37 +03:00
2009-12-21 21:28:18 +03:00
2010-03-29 11:26:51 +04:00
2010-02-03 16:06:24 +03:00
2010-02-18 16:07:49 +03:00
2008-01-11 08:18:19 +01:00
2010-03-22 22:16:21 +03:00
2010-02-03 16:35:16 +03:00

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>
Description
No description provided
Readme 112 MiB
Languages
Modelica 36.2%
PHP 29.5%
JavaScript 13.7%
CSS 10.6%
Less 5.8%
Other 4.1%