Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Server
Tiny Tiny RSS
Commits
6a79e8af
Commit
6a79e8af
authored
Mar 20, 2012
by
Andrew Dolgov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
only enable ob_gzhandler if it exists
parent
787e5ebc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
api/index.php
api/index.php
+3
-1
backend.php
backend.php
+1
-1
public.php
public.php
+2
-2
No files found.
api/index.php
View file @
6a79e8af
...
...
@@ -21,7 +21,9 @@
chdir
(
".."
);
if
(
defined
(
'ENABLE_GZIP_OUTPUT'
)
&&
ENABLE_GZIP_OUTPUT
)
{
if
(
defined
(
'ENABLE_GZIP_OUTPUT'
)
&&
ENABLE_GZIP_OUTPUT
&&
function_exists
(
"ob_gzhandler"
))
{
ob_start
(
"ob_gzhandler"
);
}
...
...
backend.php
View file @
6a79e8af
...
...
@@ -56,7 +56,7 @@
header
(
"Content-Type: text/plain; charset=utf-8"
);
if
(
ENABLE_GZIP_OUTPUT
)
{
if
(
ENABLE_GZIP_OUTPUT
&&
function_exists
(
"ob_gzhandler"
)
)
{
ob_start
(
"ob_gzhandler"
);
}
...
...
public.php
View file @
6a79e8af
<?php
set_include_path
(
get_include_path
()
.
PATH_SEPARATOR
.
set_include_path
(
get_include_path
()
.
PATH_SEPARATOR
.
dirname
(
__FILE__
)
.
"/include"
);
/* remove ill effects of magic quotes */
...
...
@@ -34,7 +34,7 @@
if
(
!
init_connection
(
$link
))
return
;
if
(
ENABLE_GZIP_OUTPUT
)
{
if
(
ENABLE_GZIP_OUTPUT
&&
function_exists
(
"ob_gzhandler"
)
)
{
ob_start
(
"ob_gzhandler"
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment