summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Viebrock <cmv@php.net>2002-10-09 14:39:39 +0000
committerColin Viebrock <cmv@php.net>2002-10-09 14:39:39 +0000
commit46a96d93639bf86d36a4f13df447ed1bd3cb605d (patch)
treed9261d31f5199418e5aab61812a68817c4d9b753
parentd3617c51b88cacf8cd2d20ecfef8138594994cde (diff)
downloadphp-git-46a96d93639bf86d36a4f13df447ed1bd3cb605d.tar.gz
no charsets, only basic entity escaping
-rw-r--r--ext/standard/info.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/ext/standard/info.c b/ext/standard/info.c
index 5e6f80ac5e..0fc8143b00 100644
--- a/ext/standard/info.c
+++ b/ext/standard/info.c
@@ -191,7 +191,7 @@ void php_info_print_style(void)
PHPAPI char *php_info_html_esc(char *string TSRMLS_DC)
{
int new_len;
- return php_escape_html_entities(string, strlen(string), &new_len, 1, ENT_COMPAT, NULL TSRMLS_CC);
+ return php_escape_html_entities(string, strlen(string), &new_len, 0, ENT_NOQUOTES, NULL TSRMLS_CC);
}
/* }}} */
@@ -277,6 +277,9 @@ PHPAPI char *php_get_uname(char mode)
*/
PHPAPI void php_print_info_htmlhead(TSRMLS_D)
{
+
+/*** none of this is needed now ***
+
const char *charset = NULL;
if (SG(default_charset)) {
@@ -303,12 +306,17 @@ PHPAPI void php_print_info_htmlhead(TSRMLS_D)
charset = "US-ASCII";
}
+*** none of that is needed now ***/
+
+
PUTS("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"DTD/xhtml1-transitional.dtd\">\n");
PUTS("<html>");
PUTS("<head>\n");
php_info_print_style();
PUTS("<title>phpinfo()</title>");
+/*
php_printf("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=%s\" />\n", charset);
+*/
PUTS("</head>\n");
PUTS("<body><center>\n");
}