Skip to content
Snippets Groups Projects
  1. Mar 17, 2016
    • Peter Rotich's avatar
      Textarea input cleanup · 5710c051
      Peter Rotich authored
      Let textarea widgets parse and clean input based on configured text format.
      Add cleanup routine to ThreadEntryBody
      Clean response/note inputs
      
      Conflicts:
      
      	include/class.forms.php
      	include/class.ticket.php
      5710c051
  2. Feb 26, 2016
  3. Feb 22, 2016
  4. Feb 05, 2016
    • Peter Rotich's avatar
      Always force server-side attachments validation · e3c9e0f0
      Peter Rotich authored
      osTicket supports filtering allowable files on the client-side via JS as
      well as server-side on upload.
      
      Ajax based upload skipped server-side validation with the assumption that
      the client already validated the file upload. For most cases this is a valid
      assumption (ajax only works if JS is enabled) but fails to account for cases
      where HTTP requests is intercepted and changed on transit or the request is
      posted directly to the ajax interface.
      
      This commit forces server-side file upload validation.
      e3c9e0f0
  5. Dec 31, 2015
  6. Nov 16, 2015
  7. Oct 30, 2015
  8. Oct 26, 2015
  9. Oct 14, 2015
  10. Oct 09, 2015
  11. Oct 05, 2015
  12. Oct 03, 2015
    • Jared Hancock's avatar
      files: Only allow files uploaded in this session · 20537408
      Jared Hancock authored
      This fixes a security issue where, by crafting a special POST request to the
      client open.php page, an (unauthenticated) user could get a URL link to
      access to any attachment already uploaded in the system by guessing or
      brute-forcing the file's ID number.
      
      This patch addresses the issue by registering the uploaded file's ID in the
      current user's session. When processing the list of file ID's attached to
      the FileUploadField, the files must already have been attached to the field
      or have been newly attached in the current session.
      
      Fixes #2615
      
      References:
      "Security issue - Download attachments submitted by others"
      https://github.com/osTicket/osTicket-1.8/issues/2615
      20537408
  13. Sep 28, 2015
  14. Sep 27, 2015
  15. Sep 26, 2015
  16. Sep 25, 2015
  17. Sep 14, 2015
    • bailey86's avatar
      Merge pull request #1 from bailey86/bailey86-patch-1 · 76349e15
      bailey86 authored
      Fix blank page from 'register' link in email
      76349e15
    • bailey86's avatar
      Fix blank page from 'register' link in email · edf25b03
      bailey86 authored
      We have existing clients who do not have an account (yet) on osTicket.  We create a ticket for them from the admin interface (creating a new guest user account) and this results in an email being sent to them with details of a job carried out.  This user can then click on the link in the notification email and view the ticket as guest - and hopefully opt to register an account.
      
      The problem seems to be this - the user clicks on the ticket number in their notification email which lets them view the ticket as a guest - there is then a link to 'register for an account' linked to http://www.example.com/account.php?do=create - but clicking this link results in a blank page.  The PHP error is:
      
      PHP Fatal error:  Call to a member function getField() on a non-object in /home/osticket/public_html/account.php on line 35, referer: http://www.example.com/tickets.php?id=105
      
      This seems to be related to a bug in account.php around line 34.
      
          // Guest registering for an account                                                                                                      
          if ($thisclient->isGuest()) {
              foreach ($thisclient->getForms() as $f)
                  if ($f->get('type') == 'U')
                      $user_form = $f;
              $user_form->getField('email')->configure('disabled', true);
          }
      
      If    $f->get('type')   is not equal to 'U' then $user_form does not get set - and therefore:
          $user_form->getField('email')->configure('disabled', true);
      
      results in the 'call member function on a non-object error'.
      
      I think the block should be:
      
          // Guest registering for an account                                                                                                      
          if ($thisclient->isGuest()) {
              foreach ($thisclient->getForms() as $f)
                  if ($f->get('type') == 'U') {
                      $user_form = $f;
                      $user_form->getField('email')->configure('disabled', true);
                  }
          }
      
      Further - to be implicit the foreach statement should have curly braces.
      
          // Guest registering for an account                                                                                                      
          if ($thisclient->isGuest()) {
              foreach ($thisclient->getForms() as $f) {
                  if ($f->get('type') == 'U') {
                      $user_form = $f;
                      $user_form->getField('email')->configure('disabled', true);
                  }
              }
          }
      edf25b03
  18. Aug 31, 2015
    • ericLemanissier's avatar
      handling errors in decoding · ace26af6
      ericLemanissier authored
      This change handles write and read error in case of decoding to temp file, and falls back to in-memory decoding in case of failure
      ace26af6
  19. Aug 28, 2015
    • ericLemanissier's avatar
      reduce memory usage when decoding files · 255bd9ef
      ericLemanissier authored
      When decoding attached files, passing the whole content of the file to imap_base64 or base64_decode leads to allocating the memory for the whole base 64 decoded file while the binary content of the file is still in memory. This leads easily to Out of memory error on limited resources servers. Using .stream_filter_append to decode the file while writing it in a temporary file uses much less memory. The content of the decoded file is then simply read from the file
      255bd9ef
    • ericLemanissier's avatar
      reduce memory usage when storing file in DB · 9789b4ec
      ericLemanissier authored
      When saving an attached file in the database, Passing the whole content of the file to bin2hex leads to allocating the memory for the whole hex encoded file while the binary content of the file is still in memory. This leads easily to Out of memory error on limited resources servers. Calling bin2hex on each chunk of the file greatly limits the memory usage.
      9789b4ec
  20. Aug 19, 2015
Loading