Weekend in Review

This weekend was pretty busy. Saturday Irate and I went out to Derry for Timbywaffles “surprise” birthday party. It was nice to see some people that I haven’t seen in a while and hang out with Tom. Happy birthday bro.

Sunday was the annual Blackwood Season kick off cookout and barbeque. It was nice to see everyone even if it was rainy. Congrats Nos on making Champion again this year.

OSTicket 1.6: Allow 2 to 5 digit file extensions (or more)

File extensions on OSTicket 1.6 ST are limited to 3 – 4 digits in the stock distribution. But some times you want to change this to allow for slightly longer or slightly smaller file extensions. Such as .gz or .xhtml.

Edit [document root]/include/class.config.php

circa line X locate the following:

$ext = strtolower(preg_replace("/.*\.(.{3,4})$/", "$1", $filename));

and change it to

$ext = strtolower(preg_replace("/.*\.(.{2,5})$/", "$1", $filename));

This will allow file extensions as small as 2 character and as large as 5.
Continue reading “OSTicket 1.6: Allow 2 to 5 digit file extensions (or more)”