We are trying to track down a SQL injection and I came across this block of code that I notice we have but lots of other installs of vBSEO other people are running lack.
<script type="text/javascript">
//<![CDATA[
window.orig_onload = window.onload;
window.onload = function() {
var cpost=document.location.hash.substring(1);var cpost2='';if(cpost){ var ispost=cpost.substring(0,4)=='post';if(ispost)cpos t2='post_'+cpost.substring(4);if((cobj = fetch_object(cpost))||(cobj = fetch_object(cpost2))){cobj.scrollIntoView(true);} else if(ispost){cpostno = cpost.substring(4,cpost.length);if(parseInt(cpostn o)>0){location.replace('http://www.XXXX.com/showthread.php?p='+cpostno);};} }
if(typeof window.orig_onload == "function") window.orig_onload();
}
//]]>
</script>
What does that code do and what setting is putting it there?


LinkBack URL
About LinkBacks





Reply With Quote