This commit is contained in:
toyomoyo
2006-02-07 01:39:22 +00:00
parent 8e227aa767
commit 24d8b724da
+2 -2
View File
@@ -71,7 +71,7 @@ function sid_process_url($url) {
&& ((stripos($url, $CFG->wwwroot)!==0) && stripos($url, $CFG->httpswwwroot)!==0)) { // and not local one
return $url; //don't attach sessid to non local urls
}
if ($url[0]=='#' ) {
if ($url[0]=='#' || (stripos($url, 'javascript:')===0)) {
return $url; //don't attach sessid to anchors
}
if (strpos($url, session_name())!==FALSE)
@@ -127,4 +127,4 @@ function sid_start_ob(){
ob_start('sid_ob_rewrite');
}
}
?>
?>