Skip to content
Snippets Groups Projects
  1. Jan 13, 2015
    • Jared Hancock's avatar
      Fix very predictable random data on some platforms · 2a358417
      Jared Hancock authored
      Misc::randCode does not generate significantly random data for Windows
      platforms with a local database. This stems from the random seed using the
      milliseconds from the current time of day and the database connection time,
      in microseconds. Because Windows has especially poor sub-second time
      resolution via the microtime() function, the seed does not have many
      variations.
      
      This patch addresses the issue by using the included Crypto::random()
      function as a source of random data rather than the mt_rand() function, as
      it uses native cryptographic random data generators if possible to generate
      the data, and uses microtime() as a fallback if no other source of random
      data is available on the platform.
      2a358417
  2. Jan 12, 2015
  3. Jan 09, 2015
  4. Jan 07, 2015
  5. Jan 06, 2015
  6. Jan 05, 2015
  7. Jan 02, 2015
  8. Dec 31, 2014
  9. Dec 30, 2014
    • Peter Rotich's avatar
      http: Use http build query · f0b18dad
      Peter Rotich authored
      Use http::build_query instead of inline urlencode
      f0b18dad
    • Jared Hancock's avatar
      filters: Fix several small, major issues · ada4d9a0
      Jared Hancock authored
        * Fix incorrect mapping to user email address
        * Fix early rejecting of tickets — even if a filter earlier in the
          matching filter list had "stop on match" set
        * Fix ::stopOnMatch referring to incorrect db field
      
      The new logic abandons the early rejection logic in ticket create. Instead,
      the normal validation is completed as usual. Thereafter, the filter is
      initialized and applied to the ticket. Upon rejection, a RejectedException
      is thrown by the ::apply() method of the TicketFilter. The Ticket::create()
      method will handle the exception and reject the ticket.
      ada4d9a0
  10. Dec 28, 2014
  11. Dec 26, 2014
    • Jared Hancock's avatar
      Properly escape text bodies for canned responses · cfa84eab
      Jared Hancock authored
      This patch changes the default formatting for text bodies used in emails,
      ticket thread, and canned response quoting so that white-space in text
      bodies is properly preserved. Previously, the text was treated as raw HTML
      and was not properly escaped, nor was the original whitespace preserved.
      cfa84eab
    • Jared Hancock's avatar
      dept: Add function to retrieve alert email mailbox · 0b91a9ca
      Jared Hancock authored
      This patch adds a ::getAlertEmail() method to the Department class, which
      allows administrators to use the department email address (normally for
      replies) as the alert email address. If not specified, the system alert
      email address is retrieved instead, automatically.
      0b91a9ca
  12. Dec 22, 2014
    • Jared Hancock's avatar
      Correct set status on new ticket · 646fc2c8
      Jared Hancock authored
      This affects new ticket by staff as well as honoring the influence of ticket
      filters on new ticket, where the status may be set to something other than
      the system default. Even the system default may be influenced if it were set
      to a closed state derivative.
      
      So the concept is simple: the new status should be set using the standard
      logic so that the closed_by staff member, date, events, and other
      information is set as normally is when a ticket is closed.
      646fc2c8
  13. Dec 18, 2014
  14. Dec 17, 2014
  15. Dec 16, 2014
  16. Dec 15, 2014
    • Jared Hancock's avatar
      Ensure case-insensitive file extension comparison · edcb6960
      Jared Hancock authored
      Ensure that when generating the list of acceptable file extensions, that the list is lower cased, because the extension from the filename will be lower-cased before attempting to find the extension in the list of acceptable extensions.
      edcb6960
  17. Nov 29, 2014
  18. Nov 20, 2014
  19. Nov 19, 2014
    • Stephen Packer's avatar
      XML supports false alert/autorespond, using isset · 5d0ddb65
      Stephen Packer authored
      - Allows the string "false" to be used in the XML payload as the documentation demonstrates, and have that be interpreted as a boolean false.
      - Switching $alert/$autorespond to use isset(), and forcing those variables to be type-casted to booleans.
      5d0ddb65
Loading