ChangeSet ID: 26257
CVSROOT: /opt/cvs-commit
Module name: appdb
Changes by: wineowner(a)winehq.org 2006/07/06 21:36:34
Modified files:
include : incl.php
Log message:
Chris Morgan <cmorgan(a)alum.wpi.edu>
Add backwards compatibility code to copy old style $_REQUEST variables to the new style
to allow old appdb urls in emails, in bugzilla and from google to continue working
Patch: http://cvs.winehq.org/patch.py?id=26257
Old revision New revision Changes Path
1.32 1.33 +43 -0 appdb/include/incl.php
Index: appdb/include/incl.php
diff -u -p appdb/include/incl.php:1.32 appdb/include/incl.php:1.33
--- appdb/include/incl.php:1.32 7 Jul 2006 2:36:34 -0000
+++ appdb/include/incl.php 7 Jul 2006 2:36:34 -0000
@@ -34,6 +34,49 @@ if(get_magic_quotes_gpc())
exit;
}
+/**
+ * rename $_REQUEST variables to preserve backwards compatibility
+ * with bugzilla links and urls in emails and on google from before our
+ * mass rename of GPC variables to use our coding standard prefixing
+ *
+ * NOTE: we may be able to remove these backwareds compatibility changes
+ * in a few years, check in mid 2007 to see how many old
+ * links are still poping up in google then
+ */
+if(isset($_REQUEST['versionId']))
+{
+ $_REQUEST['iVersionId'] = $_REQUEST['versionId'];
+ unset($_REQUEST['versionId']);
+}
+if(isset($_REQUEST['appId']))
+{
+ $_REQUEST['iAppId'] = $_REQUEST['appId'];
+ unset($_REQUEST['appId']);
+}
+if(isset($_REQUEST['buglinkId']))
+{
+ $_REQUEST['iBuglinkId'] = $_REQUEST['buglinkId'];
+ unset($_REQUEST['buglinkId']);
+}
+if(isset($_REQUEST['catId']))
+{
+ $_REQUEST['iCatId'] = $_REQUEST['catId'];
+ unset($_REQUEST['catId']);
+}
+if(isset($_REQUEST['sub']))
+{
+ $_REQUEST['sSub'] = $_REQUEST['sub'];
+ unset($_REQUEST['sub']);
+}
+if(isset($_REQUEST['topic']))
+{
+ $_REQUEST['sTopic'] = $_REQUEST['topic'];
+ unset($_REQUEST['topic']);
+}
+/* End backwards compatibility code */
+
+
+
// create arrays
$sidebar_func_list = array();
$help_list = array();