ChangeSet ID: 22258
CVSROOT: /opt/cvs-commit
Module name: appdb
Changes by: wineowner(a)winehq.org 2006/01/12 21:05:06
Modified files:
. : appview.php
Log message:
Chris Morgan <cmorgan(a)alum.wpi.edu>
Check that users can view applications and versions before displaying them. Present an error message if they lack permission. Fixes a bug where we were allowing users to view applications and versions that were rejected.
Patch: http://cvs.winehq.org/patch.py?id=22258
Old revision New revision Changes Path
1.76 1.77 +15 -0 appdb/appview.php
Index: appdb/appview.php
diff -u -p appdb/appview.php:1.76 appdb/appview.php:1.77
--- appdb/appview.php:1.76 13 Jan 2006 3: 5: 6 -0000
+++ appdb/appview.php 13 Jan 2006 3: 5: 6 -0000
@@ -191,6 +191,13 @@ if($_REQUEST['appId'])
{
$oApp = new Application($_REQUEST['appId']);
+ /* is this user supposed to view this version? */
+ if(!$_SESSION['current']->canViewApplication($oApp))
+ {
+ errorpage("Something went wrong with the application or version id");
+ exit;
+ }
+
// show Vote Menu
if($_SESSION['current']->isLoggedIn())
apidb_sidebar_add("vote_menu");
@@ -329,6 +336,14 @@ if($_REQUEST['appId'])
else if($_REQUEST['versionId'])
{
$oVersion = new Version($_REQUEST['versionId']);
+
+ /* is this user supposed to view this version? */
+ if(!$_SESSION['current']->canViewVersion($oVersion))
+ {
+ errorpage("Something went wrong with the application or version id");
+ exit;
+ }
+
$oApp = new Application($oVersion->iAppId);
if(!$oApp->iAppId)
{
Module: wine
Branch: refs/heads/master
Commit: 2cdace2760f127052b2d8f7746e8255079808386
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=2cdace2760f127052b2d8f7…
Author: Eric Pouech <eric.pouech(a)wanadoo.fr>
Date: Thu Jan 12 13:32:51 2006 +0100
ntdll: Created infrastructure to support IOCTL for serial devices.
- created infrastructure in ntdll to support IOCTL for serial devices
- implemented IOCTLs in ntdll for serial break support
- implemented the kernel32 equivalent on top of those IOCTLs
---
dlls/kernel/comm.c | 55 ++----
dlls/ntdll/Makefile.in | 1
dlls/ntdll/file.c | 21 ++
dlls/ntdll/ntdll_misc.h | 7 +
dlls/ntdll/serial.c | 197 +++++++++++++++++++++++
include/Makefile.in | 1
include/ddk/ntddser.h | 398 +++++++++++++++++++++++++++++++++++++++++++++++
7 files changed, 632 insertions(+), 48 deletions(-)
create mode 100644 dlls/ntdll/serial.c
create mode 100644 include/ddk/ntddser.h