X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Fpage%2Fheader.inc;h=147b3293fd49662ac4fb7820f7373bf725bb7ac8;hb=5d3d6f1dc8566693c006f4b01edb74f6f31334b5;hp=0ae62638bf7570f688d1f7b85585b9060f07f602;hpb=bd9a2064a4e308b2f056826a152e15f7795a2f20;p=fa-stable.git diff --git a/includes/page/header.inc b/includes/page/header.inc index 0ae62638..147b3293 100644 --- a/includes/page/header.inc +++ b/includes/page/header.inc @@ -40,9 +40,9 @@ function help_url($context=null) if ($clean) $help_page_url = access_string($help_page_url, true); - return $help_base_url + return htmlspecialchars($help_base_url .urlencode(strtr(ucwords($help_page_url), array(' '=>'', '/'=>'', '&'=>'And'))) - .'&ctxhelp=1&lang='.$country; + .'&ctxhelp=1&lang='.$country); } function send_scripts() @@ -121,11 +121,13 @@ function page_header($title, $no_menu=false, $is_index=false, $onload="", $js="" $encoding = $_SESSION['language']->encoding; if (!headers_sent()){ - header("Content-type: text/html; charset='$encoding'"); + header("Content-type: text/html; charset=$encoding"); } echo "\n"; echo "dir . "' >\n"; echo "$title"; + if (strpos($_SERVER['HTTP_USER_AGENT'], 'Trident/7.0; rv:11.0') != -1) // IE 11 doesn't work with input file type in form. + echo "\n"; echo ""; echo " \n"; echo " \n";