Skip to content
Snippets Groups Projects
  1. Sep 20, 2013
  2. Sep 18, 2013
  3. Sep 13, 2013
    • Jared Hancock's avatar
      Avoid double-encoding thread titles · bd680889
      Jared Hancock authored
      This is safe now, because the title is appropriately encoded in
      class.thread.php/ThreadEntry::create()
      
      Fixes #567, #718
      bd680889
    • Jared Hancock's avatar
      Fixes cookie domain specification · eecd0b1a
      Jared Hancock authored
      if the domain given in HTTP_HOST variable happens to have a port
      specification. Technically, the port specification should not be included in
      the domain spec given in the cookie.
      
      (And for the record, that makes no sense to me, seeing as a cookie would
      otherwise be valid for all servers on any ports at a particular domain).
      eecd0b1a
  4. Sep 12, 2013
    • Jared Hancock's avatar
      Fix up ROOT_PATH, yet again · c8197915
      Jared Hancock authored
      The previous implementation did not work correctly for symlinked folders.
      The new approach uses debug_backtrace() and ROOT_DIR to determine the
      difference between ROOT_DIR and the osTicket installation path.
      
      This thing is like a turd that won't flush
      c8197915
  5. Sep 11, 2013
  6. Sep 09, 2013
    • Jared Hancock's avatar
      Forbid message loops for alert messages · 6e5c1f6a
      Jared Hancock authored
      If an alert message manages to loop back into the ticketing system, refuse
      posting to the ticket thread. Technically, the message should be marked as
      an auto-response message; however, auto-response messages should usually be
      allowed to be appended to the ticket thread.
      
      This patch will check if the From email header cites an email address that
      is a system email address (visible in the Emails section of the Admin
      Panel). If it is, the email is completely ignored.
      6e5c1f6a
    • Peter Rotich's avatar
  7. Sep 06, 2013
    • Jared Hancock's avatar
      Oops. No need to fetch attachments twice · 7aa4e6f8
      Jared Hancock authored
      7aa4e6f8
    • Jared Hancock's avatar
      Fix cookie domain for localhost · faeed43c
      Jared Hancock authored
      Web browsers don't appreciate a cookie domain without any dots. This patch
      detects the originally-requested domain for the request. If the domain does
      not contain dots (such as 'localhost' or the name of a local server on your
      network defined in your hosts file), no cookie domain is sent.
      
      The greatest symptom of this issue what the illustrious 'Invalid CSRF token'
      seen repeatedly on the scp login page. The reason is that the browser was
      rejecting the cookie from the server.
      
      Fixes #677, #672, #653
      faeed43c
    • Jared Hancock's avatar
      Fetch attachments in mail fetch · 3188aee0
      Jared Hancock authored
      This code was lost when the message-id tracking feature was implemented
      3188aee0
    • Jared Hancock's avatar
      Fix cookie domain for localhost · 8e72e521
      Jared Hancock authored
      Web browsers don't appreciate a cookie domain without any dots. This patch
      detects the originally-requested domain for the request. If the domain does
      not contain dots (such as 'localhost' or the name of a local server on your
      network defined in your hosts file), no cookie domain is sent.
      
      The greatest symptom of this issue what the illustrious 'Invalid CSRF token'
      seen repeatedly on the scp login page. The reason is that the browser was
      rejecting the cookie from the server.
      
      Fixes #677, #672, #653
      8e72e521
    • Jared Hancock's avatar
      Provide a fallback ROOT_PATH · 8d044a30
      Jared Hancock authored
      If unable to detect the root path, provide a fallback ROOT_PATH setting to
      './'. This is likely to happen if run from the commandline (like for crons)
      or if DOCUMENT_ROOT and the folder of main.inc.php seem to have nothing in
      common
      
      Fixes #704
      8d044a30
    • Jared Hancock's avatar
      f574da55
  8. Sep 05, 2013
    • Jared Hancock's avatar
      45fdfa82
    • Jared Hancock's avatar
      65c450ee
    • Jared Hancock's avatar
      Handle attachment filenames better · b4b02114
      Jared Hancock authored
      Previously, filenames saved in the database had the spaces changed for
      underbars; however, other characters (such as commas and non-ascii
      characters) presented issues with user agents downloading the attachments.
      
      This patch handles the filename encoding for two special cases -- internet
      explorer and safari, and provides the semi-standard RFC5987 method of
      encoding the filename for the remaining browsers.
      
      Attachments are no longer forced to be downloaded. It is up to the browser
      to decide if the attachment should be shown in the browser or downloaded.
      
      This patch also fixes a slight bug in the caching mechanism for downloads
      concerning the last-modified time. The date sent to the browser was not
      properly converted to GMT time, although the server claimed that it was.
      b4b02114
    • Jared Hancock's avatar
      ROOT_DIR should be used to identify filesystem paths · 86f8c6e5
      Jared Hancock authored
      Historically, ROOT_PATH and ROOT_DIR contained the same value; however,
      ROOT_PATH now points to the URL path where osTicket is installed, whereas
      ROOT_DIR points to the file system location where osTicket is installed.
      86f8c6e5
    • Jared Hancock's avatar
      Don't send emails for non-existent table · 4c6effde
      Jared Hancock authored
      When an admin logs in to upgrade to 1.7.1 and further from a version
      pervious to 1.7.1, the system will attempt to clear password reset tokens
      from the config table, which hasn't been upgraded yet to the namespaced
      version from 1.7.1
      4c6effde
    • Jared Hancock's avatar
      Use the correct Content-Type header for CAPTCHA · f7ea0117
      Jared Hancock authored
      Some security inspection appliances and load balancers don't appreciate
      something in the HTTP headers that is not a valid HTTP header. Furthermore,
      the browser needs the Content-Type header to identify that the image is not
      the PHP default of text/html
      f7ea0117
    • Jared Hancock's avatar
      Handle attachment filenames better · ed743474
      Jared Hancock authored
      Previously, filenames saved in the database had the spaces changed for
      underbars; however, other characters (such as commas and non-ascii
      characters) presented issues with user agents downloading the attachments.
      
      This patch handles the filename encoding for two special cases -- internet
      explorer and safari, and provides the semi-standard RFC5987 method of
      encoding the filename for the remaining browsers.
      
      Attachments are no longer forced to be downloaded. It is up to the browser
      to decide if the attachment should be shown in the browser or downloaded.
      
      This patch also fixes a slight bug in the caching mechanism for downloads
      concerning the last-modified time. The date sent to the browser was not
      properly converted to GMT time, although the server claimed that it was.
      ed743474
  9. Sep 04, 2013
    • Jared Hancock's avatar
      Use the correct Content-Type header for CAPTCHA · 6d9cf82f
      Jared Hancock authored
      Some security inspection appliances and load balancers don't appreciate
      something in the HTTP headers that is not a valid HTTP header. Furthermore,
      the browser needs the Content-Type header to identify that the image is not
      the PHP default of text/html
      6d9cf82f
  10. Sep 03, 2013
    • Jared Hancock's avatar
      ROOT_DIR should be used to identify filesystem paths · 6505fb74
      Jared Hancock authored
      Historically, ROOT_PATH and ROOT_DIR contained the same value; however,
      ROOT_PATH now points to the URL path where osTicket is installed, whereas
      ROOT_DIR points to the file system location where osTicket is installed.
      6505fb74
    • Jared Hancock's avatar
      Don't send emails for non-existent table · 22329ad4
      Jared Hancock authored
      When an admin logs in to upgrade to 1.7.1 and further from a version
      pervious to 1.7.1, the system will attempt to clear password reset tokens
      from the config table, which hasn't been upgraded yet to the namespaced
      version from 1.7.1
      22329ad4
    • Jared Hancock's avatar
      Properly detect and handle empty address lists · 7b241c71
      Jared Hancock authored
      The mainly comes in when a MIME header which might contain a list of email
      addresses (like Reply-To) is to be parsed, but is empty. The Mail_RFC822
      class would return an empty mailbox @ localhost (where 'localhost' is the
      default default_domain for mail address list parsing).
      7b241c71
    • Jared Hancock's avatar
      Fixup message-id tracking for piped emails · a7286221
      Jared Hancock authored
      a7286221
    • Jared Hancock's avatar
      Remove requirement of ticket id in subject line · 29b37144
      Jared Hancock authored
      This patch affords an administrator the ability to remove the
      [#%{ticket.number}] from the email template subject line for the new ticket
      autoresponse and the new message autoresponse. Previously, the ticket number
      with a prefixed hash in brackets was used to identify which ticket thread an
      email was in reference to.
      
      With this patch, the email message-id (which was already kept on file) is
      sent in the MIME "References" header. When a user responds to and
      autoresponse email, the "References" will include this message-id in the
      return email. The ticket thread is then matched up with the email based on
      the message-id rather than the subject line.
      
      Ticket numbers are still supported in the subject line, in the event that
      non-compliant email clients do not properly include the References header.
      29b37144
    • Jared Hancock's avatar
      Version tag now includes the 'v' · 6a452782
      Jared Hancock authored
      6a452782
    • Jared Hancock's avatar
      Fix uninitialized variables · 32ff2763
      Jared Hancock authored
      32ff2763
  11. Sep 02, 2013
  12. Aug 30, 2013
  13. Aug 26, 2013
  14. Aug 22, 2013
Loading