Bug shows prior version where current version is in use.
I found on a template page in DW3 (and I don't think that the fact it was a template is involved) a minor bug.
I created some SA show regions, so the page header contains:
<?php require_once( "../webassist/security_assist/helper_php.php" ); ?>
Then I add a restrict access to page behavior and it comes out like this:
<?php require_once( "../webassist/security_assist/helper_php.php" );
if (!WA_Auth_RulePasses("admin")){
WA_Auth_RestrictAccess("../admin/index.php");
}
?>
When that happens, my Server Behavior window shows all the SA behaviors as having the error of "Prior Version" which it isn't. When I double click on one of the behaviors to fix it, the code is modified to look like this:
<?php require_once( "../webassist/security_assist/helper_php.php" ); ?>
<?php require_once( "../webassist/security_assist/helper_php.php" );
if (!WA_Auth_RulePasses("admin")){
WA_Auth_RestrictAccess("../admin/index.php");
}
?>
(If anyone else sees this, just remove the second include reference, or modify the code to look like this (separate code blocks for the include and the behavior code):
<?php require_once( "../webassist/security_assist/helper_php.php" ); ?>
<?php
if (!WA_Auth_RulePasses("admin")){
WA_Auth_RestrictAccess("../admin/index.php");
}
?>