healthcenter fixes - new extra whitespace detection, fixed automatic slasharguments detection

This commit is contained in:
skodak
2006-07-05 07:41:51 +00:00
parent e1ddd943fb
commit a520b47745
3 changed files with 23 additions and 18 deletions
+1 -1
View File
@@ -534,7 +534,7 @@ $CFG->os = PHP_OS;
}
if ($CFG->theme == 'standard' or $CFG->theme == 'standardwhite') { // Temporary measure to help with XHTML validation
if (empty($_SESSION['USER']->id)) { // Allow W3CValidator in as user called w3cvalidator (or guest)
if (isset($_SERVER['HTTP_USER_AGENT']) and empty($_SESSION['USER']->id)) { // Allow W3CValidator in as user called w3cvalidator (or guest)
if ((strpos($_SERVER['HTTP_USER_AGENT'], 'W3C_Validator') !== false) or
(strpos($_SERVER['HTTP_USER_AGENT'], 'Cynthia') !== false )) {
if ($USER = get_complete_user_data("username", "w3cvalidator")) {