svn: /pear/packages/Bugtracker/trunk/include/ functions.php
| From: | Jani Taskinen | Date: | Mon, 22 Feb 2010 12:53:07 +0000 |
| Subject: | svn: /pear/packages/Bugtracker/trunk/include/ functions.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-9200@lists.php.net to get a copy of this message | ||
jani Mon, 22 Feb 2010 12:53:07 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=295370
Log:
- Do not fail totally when auth check fails and use UTF-8 from now on
Changed paths:
U pear/packages/Bugtracker/trunk/include/functions.php
Modified: pear/packages/Bugtracker/trunk/include/functions.php
===================================================================
--- pear/packages/Bugtracker/trunk/include/functions.php 2010-02-22 12:52:37 UTC (rev 295369)
+++ pear/packages/Bugtracker/trunk/include/functions.php 2010-02-22 12:53:07 UTC (rev 295370)
@@ -78,8 +78,8 @@
$a = @unserialize($s);
if (!is_array($a)) {
- echo "Unknown authentication error<br />\nMaybe master is down?\n";
- exit;
+ $errors[] = "Failed to get authentication information.\nMaybe master is down?\n";
+ return false;
}
if (isset($a['errno'])) {
$errors[] = "Authentication failed: {$a['errstr']}\n";
@@ -1441,8 +1441,8 @@
$_header_done = true;
- header('Content-Type: text/html; charset=ISO-8859-15');
- echo '<?xml version="1.0" encoding="ISO-8859-15" ?>';
+ header('Content-Type: text/html; charset=UTF-8');
+ echo '<?xml version="1.0" encoding="UTF-8" ?>';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">