PDA

View Full Version : Random redirects to profile.php


polpo
01-03-2007, 07:26 AM
When doing anything on the forum in Firefox from just simply going to http://forums.slickdeals.net/ I get randomly redirected to http://forums.slickdeals.net/profile.php, which shows up as blank. It looks like there's some javascript in VBulletin that's causing it:

<!-- auto DST correction code -->
<form action="profile.php" method="post" name="dstform">
<input type="hidden" name="s" value="" />
<input type="hidden" name="do" value="dst" />
</form>
<script type="text/javascript">
<!--
var tzOffset = -6 + 1;
var utcOffset = new Date().getTimezoneOffset() / 60;
if (Math.abs(tzOffset + utcOffset) == 1)
{ // Dst offset is 1 so its changed
document.forms.dstform.submit();
}
//-->
</script>
<!-- / auto DST correction code -->

It looks like profile.php exists, as I don't get a 404, but it may be empty or broken.

Hoseman666
01-03-2007, 09:07 AM
That's what my post was about too, though it seems to not be an issue so far today, in my first 5 minutes on SD this fine morning...

slickdeals
01-03-2007, 03:45 PM
Thanks, that helped in fixing it.