- Jul 09, 2019
-
-
Peter Rotich authored
Conflicts: include/class.file.php
-
Peter Rotich authored
Issue/file type override
-
Peter Rotich authored
This commit adds ability to make sure images are indeed images by checking image type.
-
Peter Rotich authored
issue: Search Reindexing Thread Entries
-
Peter Rotich authored
issue: ISO-8859-8-i Charset Issues
-
- Jul 03, 2019
-
-
JediKev authored
This addresses an issue where `IndexOldStuff()` doesn't reindex everything it's supposed to. The reindex leaves out all of the Thread Entries with empty titles or bodies. This is due to the SQL statement that retrieves thread entries. In the SQL statement, we check if the sum of the Thread Entry Title length and the Thread Entry Body length is greater than 0. If so we reindex the entry, otherwise we exclude it. The problem is both ```LENGTH(A1.`title`)``` and ```LENGTH(A1.`body`)``` can return `NULL` and you cannot add `NULL` (a string) to an integer. This updates the SQL to add `IFNULL()` statements around the possible `NULL` values so that if `NULL` we typecast to integer of 0 which can be added to integers successfully.
-
- Jun 28, 2019
-
-
JediKev authored
This addresses an issue where emails with `ISO-8859-8-i` character-sets appear as "(empty)" in the system. This is due to `ISO-8859-8-i` not being a valid character-set for `iconv()`. When you pass `ISO-8859-8-i` to `iconv()` you will receive an error similar to `iconv(): Wrong charset, conversion from 'ISO-8859-8-i' to 'UTF-8//IGNORE' is not allowed`. I don’t know why it's not a valid character-set for `iconv()` but the trailing `-i` is used to say "keep the text in logical order instead of visual order". Logical order just means to keep the text in true right-to-left format instead of transcoding the characters to left-to-right format. This adds a new case to the `Charset::normalize()` switch statement to match against `ISO-XXXX-X-i`. If a character set matches the criteria we will remove the trailing `-i` and set the charset to `ISO-XXXX-X`. This charset format is valid in `iconv()` which will return the correctly formatted email instead of "(empty)".
-
Peter Rotich authored
issue: Account Registration Throws Errors
-
Peter Rotich authored
issue: Retained Deleted ListItem Errors
-
Peter Rotich authored
-
- Jun 13, 2019
-
-
Peter Rotich authored
Remove file type overwrite previously used to force downloads. This addresses potential XSS where an attacker could pass "image" resulting in the file being displayed in line.
-
Peter Rotich authored
Double semicolon removed
-
Peter Rotich authored
Issue: Ticket Alerts vs Dept Recipients
-
Peter Rotich authored
task: Implement edit of task thread
-
- Jun 11, 2019
-
-
aydreeihn authored
If an alert is enabled for only the Department Manager and the Department Recipients field is set to No one, the Department Manager still receives a notification. If the recipients field is set to no one, nobody should receive an alert regardless of what is checked on the New Ticket Alert selections. To fix this, we can do a count of what the getMembersForAlerts function returns. This function compares what is set for a Department's group_membership in the database to the ALERTS_DISABLED constant to return a query set of members that should receive an alert. If the count is 0, we know that alerts should be disabled.
-
- Jun 03, 2019
-
-
Jared Hancock authored
This fixes an issue where, for task threads, if an agent has the thread edit permission, the agent was neither able to edit his or her own entries, nor the entries of other agents.
-
- May 23, 2019
-
-
JediKev authored
This addresses issue 4898 where a User that clicks the ticket link in an email alert to view the ticket, in that ticket view clicks the link to register for an account, fills out the registration form, and clicks Create will throw a an "Unable to register account. See messages below." error. When the Users get this error there are no messages below so they can't see anything to fix which prevents them from creating an account. This is due to the email field being disabled which means the value is not sent in POST so the system thinks the User sent no email address which throws a hidden "Email field required." error. We disabled the email field to prevent an attacker from accessing the user’s guest login and registering the user with a different email (possibly his own). This sets a POST value called 'email' to the client's email so that the registration process acknowledges and validates the email allowing registration to continue.
-
- May 22, 2019
-
-
JediKev authored
This addresses an issue where New Tickets will fail for Users with a deleted ListItem retained in their Contact Information form. This is due to the system deleting the `list_id` for the ListItem so when we run `getFilterData()` for the User we can't find the list which causes a fatal error later down the line. This adds an OR statement to the `SelectionField::getFilterData()` method to skip said ListItems if no `list_id` is present.
-
- May 15, 2019
-
-
matzneda authored
-
- May 10, 2019
-
-
Peter Rotich authored
-
Peter Rotich authored
Conflicts: include/class.dynamic_forms.php include/class.mailparse.php include/client/open.inc.php include/staff/templates/user-lookup.tmpl.php setup/test/tests/stubs.php
-
Peter Rotich authored
-
Peter Rotich authored
cli: Package Better Wording
-
- May 09, 2019
-
-
Peter Rotich authored
FAQ Issues
-
Peter Rotich authored
cli: Package No File Permissions
-
Peter Rotich authored
Issue: Tickets Visibility
-
aydreeihn authored
This commit ensures that an Agent with the 'See all tickets in search results, regardless of access' permission checked can see all Tickets in a search or a saved search, but does NOT see all Tickets within queues.
-
Peter Rotich authored
oops: .eml/.msg Missing Not Operator
-
Peter Rotich authored
Lint Fixes
-
Peter Rotich authored
issue: API Unexpected Data Warnings
-
Peter Rotich authored
issue: Queue Sort Title No Validation Error
-
JediKev authored
This updates the variable name that determines if the current PHP version is 5.6+ from `$php56` to `$php56plus`. This will help other understand better what the variable is/does.
-
- Apr 30, 2019
-
-
Peter Rotich authored
-
- Apr 29, 2019
-
-
JediKev authored
This addresses an issue reported on the Forum where adding a new Sort Option for Queues without a title fails without error. This is due to the queue-sorting template that uses a new instance of the `QueueSortDataConfigForm` form from a new instance of `QueueSort` rather than the existing form with existing POST data/errors when a POST is submitted. This updates the queue-sorting template to use the already available `$data_form` form instance. This also adds an if statement to set the `$data_form` if one doesn’t exist (this only applies to new modals without a POST).
-
JediKev authored
This addresses a typo where we are missing a not operator in class MailFetcher when checking for no `$body` in the fetched attachments. This adds the not operator so that the `if()` statement is properly executed and we correctly set a fake body when there is none.
-
- Apr 25, 2019
-
-
JediKev authored
This addresses an issue where the `package` cli module is leaving out the permissions on files. This causes the final ZIP archive to contain files without permissions meaning the files are un-usable until you restore permissions. This can make life difficult on people trying to install osTicket with minimal knowledge as they wouldn’t know what is wrong. This is due to the `setExternalAttributesName` method not shifting 16 bits on the file "mode" which will not translate to binary. The file "mode" is the inode protection mode for a file returned by the `stat()` method. It is essentially a decimal representation of a file's permissions. Since "mode" is in decimal format we need to shift by 16 bits to translate it to binary so the archiver understands. Once the mode is translated to binary the permissions are preserved.
-
aydreeihn authored
This commit gets rid of PHP warnings. Additionally, it updates the lint tests to be more accurate.
-
- Apr 24, 2019
-
-
Peter Rotich authored
Conflicts: WHATSNEW.md include/client/header.inc.php
-
Peter Rotich authored
-
JediKev authored
This updates jQuery to the latest stable release of v3.4.0.
-