diff options
-rwxr-xr-x | docs/CHANGELOG | 2 | ||||
-rw-r--r-- | lib/class/shoutbox.class.php | 2 | ||||
-rw-r--r-- | shout.php | 6 |
3 files changed, 9 insertions, 1 deletions
diff --git a/docs/CHANGELOG b/docs/CHANGELOG index 73ae0bbb..658954a1 100755 --- a/docs/CHANGELOG +++ b/docs/CHANGELOG @@ -4,6 +4,8 @@ -------------------------------------------------------------------------- v.3.5-Alpha1 + - Fix an error if you try to add a shoutbox for an invalid object + (Thx atrophic) - Fixed issue with art dump on jpeg files (Thx atrophic) - Fixed issue with force http play and port not correctly specifying non-standard http port (Thx Deathcrow) diff --git a/lib/class/shoutbox.class.php b/lib/class/shoutbox.class.php index 9e4eafd6..d8db9a36 100644 --- a/lib/class/shoutbox.class.php +++ b/lib/class/shoutbox.class.php @@ -1,7 +1,7 @@ <?php /* - Copyright (c) 2001 - 2007 Ampache.org + Copyright (c) Ampache.org All rights reserved. This program is free software; you can redistribute it and/or @@ -37,6 +37,12 @@ switch ($_REQUEST['action']) { // Get our object first $object = shoutBox::get_object($_REQUEST['type'],$_REQUEST['id']); + if (!$object->id) { + Error::add('general',_('Invalid Object Selected')); + Error::display('general'); + break; + } + // Now go ahead and display the page where we let them add a comment etc require_once Config::get('prefix') . '/templates/show_add_shout.inc.php'; break; |