Just upgraded from v1.10 to v1.17 and one annoyance is still there: When a ticket tect contains something like www.example.com or example@example.com a link is automatically displayed after saving. This happens even when the formatting for the paragraph is set to code. This makes it really annoying for technical documentation e.g. when you want to show a DNS record exactly as-is and osTicket forcefully inserts http:// or similar.

    cbiere

    You will need to customize Redactor. It is a third party text editor we utilize.

    Cheers.

    @ntozier: Good idea. Then use OCR to get the original text and searching will be a blizz.

    I think, I found the code and patched the annoying bit out:

    diff -u ./include/class.format.php.backup ./include/class.format.php
    --- ./include/class.format.php.backup   2022-10-26 14:13:55.558444789 +0200
    +++ ./include/class.format.php  2022-10-26 14:15:09.934978209 +0200
    @@ -545,7 +545,7 @@
                 function($match) {
                     // Scan for things that look like URLs
                     return preg_replace_callback(
    -                    '`(?<!>)(((f|ht)tp(s?)://|(?<!//)www\.)([-+~%/.\w]+)(?:[-?#+=&;%@.\w\[\]\/]*)?)'
    +                    '`(?<!>)(((f|ht)tp(s?)://)([-+~%/.\w]+)(?:[-?#+=&;%@.\w\[\]\/]*)?)'
                        .'|(\b[_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,63})`',
                         function ($match) {
                             if ($match[1]) {
    
    Write a Reply...