Never understimate the ingenuity of fools.

git-svn-id: http://svn.automattic.com/wordpress/trunk@542 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
emc3 2003-11-11 20:57:43 +00:00
parent 3d8f2e3340
commit 15b9216634
1 changed files with 8 additions and 1 deletions

View File

@ -6,7 +6,14 @@
// accessing a single global $all_settings var
if (!$_wp_installing) {
$siteurl = get_settings('siteurl');
if ('/' == substr($siteurl, -1)) $siteurl = substr($siteurl, 0, -1);
// "When trying to design a foolproof system,
// never underestimate the ingenuity of the fools :)"
//
// Strip trailing slashes from $siteurl. But don't do
// anything that could cause an infinite loop.
while (('/' == substr($siteurl, -1)) && (10 > $i++)) {
$siteurl = substr($siteurl, 0, -1);
}
$blogfilename = get_settings('blogfilename');
$blogname = get_settings('blogname');
$blogdescription = get_settings('blogdescription');