@@ -245,10 +245,10 @@ static php_cli_server_http_reponse_status_code_pair status_map[] = {
245
245
};
246
246
247
247
static php_cli_server_http_reponse_status_code_pair template_map [] = {
248
- { 400 , "<h1 class=\"h\" >%s</h1><p>Your browser sent a request that this server could not understand.</p>" },
249
- { 404 , "<h1 class=\"h\" >%s</h1><p>The requested resource %s was not found on this server.</p>" },
250
- { 500 , "<h1 class=\"h\" >%s</h1><p>The server is temporarily unavailable.</p>" },
251
- { 501 , "<h1 class=\"h\" >%s</h1><p>Request method not supported.</p>" }
248
+ { 400 , "<h1>%s</h1><p>Your browser sent a request that this server could not understand.</p>" },
249
+ { 404 , "<h1>%s</h1><p>The requested resource %s was not found on this server.</p>" },
250
+ { 500 , "<h1>%s</h1><p>The server is temporarily unavailable.</p>" },
251
+ { 501 , "<h1>%s</h1><p>Request method not supported.</p>" }
252
252
};
253
253
254
254
static php_cli_server_ext_mime_type_pair mime_type_map [] = {
@@ -279,22 +279,10 @@ ZEND_DECLARE_MODULE_GLOBALS(cli_server);
279
279
/* {{{ static char php_cli_server_css[]
280
280
* copied from ext/standard/info.c
281
281
*/
282
- static const char php_cli_server_css [] = "<style type=\"text/css\">\n" \
283
- "body {background-color: #ffffff; color: #000000;}\n" \
284
- "body, td, th, h1, h2 {font-family: sans-serif;}\n" \
285
- ".center {text-align: center;}\n" \
286
- ".center table { margin-left: auto; margin-right: auto; text-align: left;}\n" \
287
- ".center th { text-align: center !important; }\n" \
288
- "h1 {font-size: 150%;}\n" \
289
- "h2 {font-size: 125%;}\n" \
290
- ".p {text-align: left;}\n" \
291
- ".e {background-color: #ccccff; font-weight: bold; color: #000000;}\n" \
292
- ".h {background-color: #9999cc; font-weight: bold; color: #000000;}\n" \
293
- ".v {background-color: #cccccc; color: #000000;}\n" \
294
- ".vr {background-color: #cccccc; text-align: right; color: #000000;}\n" \
295
- "img {float: right; border: 0px;}\n" \
296
- "hr {width: 600px; background-color: #cccccc; border: 0px; height: 1px; color: #000000;}\n" \
297
- "</style>\n" ;
282
+ static const char php_cli_server_css [] = "<style>\n" \
283
+ "body { background-color: #ffffff; color: #000000; }\n" \
284
+ "h1 { font-family: sans-serif; font-size: 150%; background-color: #9999cc; font-weight: bold; color: #000000; margin-top: 0;}\n" \
285
+ "</style>\n" ;
298
286
/* }}} */
299
287
300
288
static void char_ptr_dtor_p (char * * p ) /* {{{ */
@@ -1757,7 +1745,7 @@ static int php_cli_server_send_error_page(php_cli_server *server, php_cli_server
1757
1745
escaped_request_uri = php_escape_html_entities_ex ((unsigned char * )client -> request .request_uri , client -> request .request_uri_len , & escaped_request_uri_len , 0 , ENT_QUOTES , NULL , 0 TSRMLS_CC );
1758
1746
1759
1747
{
1760
- static const char prologue_template [] = "<html><head><title>%d %s</title>" ;
1748
+ static const char prologue_template [] = "<!doctype html>< html><head><title>%d %s</title>" ;
1761
1749
php_cli_server_chunk * chunk = php_cli_server_chunk_heap_new_self_contained (strlen (prologue_template ) + 3 + strlen (status_string ) + 1 );
1762
1750
if (!chunk ) {
1763
1751
goto fail ;
0 commit comments