aboutsummaryrefslogtreecommitdiff
path: root/p/f.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2014-01-12 16:27:35 +0100
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2014-01-12 16:27:35 +0100
commit3cff96fae3bba77ac630e3ea7076558b10e9ed8b (patch)
tree23e6f2e8c7412c476db3fc19e38432c1f27b700f /p/f.php
parent0f481f7f24dfad3bf9775213f487dd6802b6cb6a (diff)
Corrige problème favicons sous Nginx
https://github.com/marienfressinaud/FreshRSS/issues/364
Diffstat (limited to 'p/f.php')
-rw-r--r--p/f.php15
1 files changed, 1 insertions, 14 deletions
diff --git a/p/f.php b/p/f.php
index 660128a59..5db9ab213 100644
--- a/p/f.php
+++ b/p/f.php
@@ -7,13 +7,6 @@ function download_favicon ($website, $dest) {
$ok = false;
$url = 'http://g.etfv.co/' . $website;
- /*if (!is_dir ($favicons_dir)) {
- if (!mkdir ($favicons_dir, 0755, true)) {
- header('Location: ' . $url);
- return false;
- }
- }*/
-
$c = curl_init ($url);
curl_setopt ($c, CURLOPT_HEADER, false);
curl_setopt ($c, CURLOPT_RETURNTRANSFER, true);
@@ -36,13 +29,7 @@ function download_favicon ($website, $dest) {
return true;
}
-if (isset($_SERVER['PATH_INFO'])) {
- $id = substr($_SERVER['PATH_INFO'], 1);
-} elseif (isset($_SERVER['QUERY_STRING'])) {
- $id = $_SERVER['QUERY_STRING'];
-} else {
- $id = '0';
-}
+$id = isset($_SERVER['QUERY_STRING']) ? $_SERVER['QUERY_STRING'] : '0';
if (!ctype_xdigit($id)) {
$id = '0';