Skip to main content
Inspiring
June 24, 2009
Question

Restrict Access behaviour still has redirect bug in CS4

  • June 24, 2009
  • 1 reply
  • 550 views

I have just upgraded to Dreamweaver CS4 and see that there is still a PHP error in the code for this behaviour, which if used out of the box will never redirect authorised users to the page they came from.

The lines which read:

  if (isset($QUERY_STRING) && strlen($QUERY_STRING) > 0)
  $MM_referrer .= "?" . $QUERY_STRING;

Should be:

  if (isset($_SERVER['QUERY_STRING']) && strlen($_SERVER['QUERY_STRING']) > 0)
  $MM_referrer .= "?" . $_SERVER['QUERY_STRING'];

Does Adobe have any plans to correct this old bug?

Ed

This topic has been closed for replies.

1 reply

David_Powers
Inspiring
June 24, 2009

I reported the bug to Adobe some time ago, and understand that it will be fixed in the next release.

You can fix it easily yourself by editing lines 43 and 44 of RestrictAccess_main.edml:

  if (isset($QUERY_STRING) && strlen($QUERY_STRING) > 0)
  $MM_referrer .= "?" . $QUERY_STRING;

In Windows, the file is located in C:\Program Files\Adobe\Adobe Dreamweaver CS4\configuration\ServerBehaviors\PHP_MySQL. It's in the same location in the Applications folder on a Mac.