forked from osTicket/osTicket
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v1.9.6 Maintenance release for the osTicket 1.9 series Enhancements * New Message-Id system allowing for better threading in mail clients (osTicket#1549, osTicket#1730) * Fix forced session expiration after 24 hours (osTicket#1677) * Staff panel logo is customizable (osTicket#1718) * Priority fields have a selectable default (instead of system default) (osTicket#1732) * Import/Export support for file contents via cli (osTicket#1661) Improvements * Fix broken links in documentation, thanks @Chefkeks (osTicket#1675) * Fix handling of some Redmond-specific character set encoding names (osTicket#1698) * Include the user's name in the "To" field of outbound email (osTicket#1549) * Delete collaborators when deleting tickets (osTicket#1709) * Fix regression preventing auto-responses for staff new tickets (osTicket#1712) * Fix empty export if ticket details form has multiple priority fields (osTicket#1732) * Fix filtering by list item properties in ticket filters (osTicket#1741) * Fix missing icon for "add new filter", thanks @Chefkeks (osTicket#1735) * Support Firefox v6 - v12 on the file drop widget (osTicket#1776) * Show update errors on access templates (osTicket#1778) * Allow empty staff login banner on update (osTicket#1778) * Fix corruption of text thread bodies for third-party collaborator email posts (osTicket#1794) * Add some hidden template variables to pop out content (osTicket#1781) * Fix missing validation for user name and email address (osTicket#1816, eb8858e) * Turn off search indexing when complete, disable incorrectly implemented work breaking, squelch error 1062 email from search backend (afa9692) * Fix possible out of memory crash in custom forms (osTicket#1707, 0440111) Performance and Security * Fix generation of random data on Windows® platforms (osTicket#1672) * Fix possible DoS and brute force on login pages (osTicket#1727) * Fix possible redirect away from HTTPS on client login page, thanks @ldrumm (osTicket#1782)
- Loading branch information
Showing
139 changed files
with
2,144 additions
and
1,281 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?php | ||
/********************************************************************* | ||
file.php | ||
File download facilitator for clients | ||
Peter Rotich <peter@osticket.com> | ||
Jared Hancock <jared@osticket.com> | ||
Copyright (c) 2006-2014 osTicket | ||
http://www.osticket.com | ||
Released under the GNU General Public License WITHOUT ANY WARRANTY. | ||
See LICENSE.TXT for details. | ||
vim: expandtab sw=4 ts=4 sts=4: | ||
**********************************************************************/ | ||
require('client.inc.php'); | ||
require_once(INCLUDE_DIR.'class.file.php'); | ||
|
||
//Basic checks | ||
if (!$_GET['key'] | ||
|| !$_GET['signature'] | ||
|| !$_GET['expires'] | ||
|| !($file = AttachmentFile::lookup($_GET['key'])) | ||
) { | ||
Http::response(404, __('Unknown or invalid file')); | ||
} | ||
|
||
// Validate session access hash - we want to make sure the link is FRESH! | ||
// and the user has access to the parent ticket!! | ||
if ($file->verifySignature($_GET['signature'], $_GET['expires'])) { | ||
if (($s = @$_GET['s']) && strpos($file->getType(), 'image/') === 0) | ||
return $file->display($s); | ||
|
||
// Download the file.. | ||
$file->download(@$_GET['disposition'] ?: false, $_GET['expires']); | ||
} | ||
// else | ||
Http::response(404, __('Unknown or invalid file')); |
Oops, something went wrong.