Skip to content

Commit 4f7b0a0

Browse files
committed
make sure the images on the phpinfo() page point to PHP-enabled pages
1 parent af88aa5 commit 4f7b0a0

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

ext/standard/info.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,9 @@ void _php3_info(void)
107107
#endif
108108

109109

110-
PUTS("<img src=\"?=PHPE9568F34-D428-11d2-A769-00AA001ACF42\" border=\"0\" width=\"100\" height=\"56\" align=\"right\">\n");
110+
PUTS("<img src=\"");
111+
PUTS(GLOBAL(php3_rqst)->uri);
112+
PUTS("?=PHPE9568F34-D428-11d2-A769-00AA001ACF42\" border=\"0\" width=\"100\" height=\"56\" align=\"right\">\n");
111113
php3_printf("<center><h1>PHP Version %s</h1></center>\n", PHP_VERSION);
112114
PUTS("<p>by <a href=\"mailto:rasmus@lerdorf.on.ca\">Rasmus Lerdorf</a>,\n");
113115
PUTS("<a href=\"mailto:andi@zend.com\">Andi Gutmans</a>,\n");
@@ -384,7 +386,9 @@ void _php3_info(void)
384386
PUTS("<hr>\n");
385387
PUTS("<table width=\"100%%\"><tr>\n");
386388
php3_printf("<td><h2>Zend</h2>This program makes use of the Zend scripting language engine:<br><pre>%s</pre></td>", get_zend_version());
387-
PUTS("<td width=\"100\"><a href=\"http://www.zend.com/\"><img src=\"?=PHPE9568F35-D428-11d2-A769-00AA001ACF42\" border=\"0\" width=\"100\" height=\"89\"></a></td>\n");
389+
PUTS("<td width=\"100\"><a href=\"http://www.zend.com/\"><img src=\"");
390+
PUTS(GLOBAL(php3_rqst)->uri);
391+
PUTS("?=PHPE9568F35-D428-11d2-A769-00AA001ACF42\" border=\"0\" width=\"100\" height=\"89\"></a></td>\n");
388392
PUTS("</tr></table>\n");
389393

390394
SECTION("PHP License");

0 commit comments

Comments
 (0)