forms: Fix html rendering of checkbox description
api: Handle ArrayObject like an array for request validation
forms: Always attempt to look up selection value by name
Merge pull request #1237 from greezybacon/issue/1079

api: Handle ArrayObject like an array for request validation

Reviewed-By: Peter Rotich <peter@osticket.com>
Merge pull request #1238 from greezybacon/issue/737

forms: Always attempt to look up selection value by name

Reviewed-By: Peter Rotich <peter@osticket.com>
Merge pull request #1160 from greezybacon/issue/checkbox-desc-html

forms: Fix html rendering of checkbox description

Reviewed-By: Peter Rotich <peter@osticket.com>
forms: Fix crash adding user with selection field
email: Add MAIL_EOL setting to ost-config.php file

This setting allows administrators to add (uncomment) a MAIL_EOL setting in
the ost-config.php config file to define the line ending used for mail
headers and encoded bodies in outbound mail (SMTP, for instance).

By default, CRLF is used by the SMTP email generator as per the RFC 822
standard. However, many administrators can benefit by setting LF (\n) as the
line ending.
pjax: Navigate away on attachment and download links
Merge pull request #1248 from greezybacon/issue/mail-eol

email: Add MAIL_EOL setting to ost-config.php file

Reviewed-By: Peter Rotich <peter@osticket.com>
Merge pull request #1249 from greezybacon/issue/pjax-links

pjax: Navigate away on attachment and download links

Reviewed-By: Peter Rotich <peter@osticket.com>
email: Import embedded images before truncating the body
email: Improve user identification from headers

Previously, the code would scan the email headers until it found a positive
match from any of the email headers scanned. Additionally, it would attempt
to find the user from the tagged email references header. However, this
algorithm assumed that the references header was constant and predictable in
its ordering. Recent tests with Gmail prove otherwise in some tests.

This patch changes the system so that only the tagged reference header is
included in the References header, and it will scan all items in a header
(namely the References header) until both the thread and a user are
identified. If a user can be identified, the thread and user are returned.
Otherwise, the first thread hit is returned.
Merge pull request #1260 from greezybacon/issue/1259

This is the correct logic - we'll address issue #1259 separately

Reviewed-By: Peter Rotich <peter@osticket.com>
Merge pull request #1263 from greezybacon/issue/email-references-user

email: Improve user identification from headers

Reviewed-By: Peter Rotich <peter@osticket.com>
pages: Fix incorrect lookup of inline images

In some cases, a POST might be sent to the server and there be no draft. In
such a case, neither the draft nor the body of the page can be inspected for
images. Even worse, in some cases the previous images might be unlinked from
the article without being relinked. Therefore, the images will no longer be
linked to the page and will likely be purged from the system.
Fix #1302. 

Fix issue that fails for get names on incorrect formats. Ex: J.Everybody
Merge pull request #1288 from greezybacon/oops/page-images

pages: Fix incorrect lookup of inline images

Reviewed-By: Peter Rotich <peter@osticket.com>
Merge pull request #1310 from eleazan/patch-2

Fix #1302.

Reviewed-By: Peter Rotich <peter@osticket.com>
forms: Support non-US locale on client portal

The staff portal has a feature where the date fields are converted to
YYYY-MM-DD prior to form submission. However, this code was not ported to
the client portal. Therefore, for non-US date formats (d/m/Y for instance)
would not be processed properly by the server and would be nulled prior to
validation.