Skip to content

Commit c4e7e7e

Browse files
committed
Fix double-encoded output on install page
1 parent 56465b9 commit c4e7e7e

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

qa-config-example.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,9 @@
150150
/*
151151
Some settings to help optimize your Question2Answer site's performance.
152152
153-
If QA_HTML_COMPRESSION is true, HTML web pages will be output using Gzip compression, if
154-
the user's browser indicates this is supported. This will increase the performance of your
155-
site, but may make debugging harder if PHP does not complete execution.
153+
If QA_HTML_COMPRESSION is true, HTML web pages will be output using Gzip compression, which
154+
will increase the performance of your site (if the user's browser indicates this is supported).
155+
This is best done at the server level if possible, but many hosts don't provide server access.
156156
157157
QA_MAX_LIMIT_START is the maximum start parameter that can be requested, for paging through
158158
long lists of questions, etc... As the start parameter gets higher, queries tend to get
@@ -184,7 +184,7 @@
184184
bottom of every Question2Answer page.
185185
*/
186186

187-
define('QA_HTML_COMPRESSION', true);
187+
define('QA_HTML_COMPRESSION', false);
188188
define('QA_MAX_LIMIT_START', 19999);
189189
define('QA_IGNORED_WORDS_FREQ', 10000);
190190
define('QA_ALLOW_UNINDEXED_QUERIES', false);

qa-include/qa-install.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ function qa_install_db_fail_handler($type, $errno = null, $error = null, $query
5858

5959
if (ob_get_level() > 0) {
6060
// clears any current theme output to prevent broken design
61-
ob_clean();
61+
ob_end_clean();
6262
}
6363

6464
$success = '';

0 commit comments

Comments
 (0)