Changeset 763 for trunk/lib/Utilities.inc.php
- Timestamp:
- Feb 24, 2022 10:05:48 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Utilities.inc.php
r759 r763 319 319 // Remove http schemas, and any single trailing / to make the display URL. 320 320 $display_url = preg_replace(['!^https?://!u', '!^([^/]+)/$!u'], ['', '$1'], $url); 321 return sprintf('<a href="%s">%s</a>', oTxt($absolute_url), $display_url);321 return sprintf('<a href="%s">%s</a>', oTxt($absolute_url), oTxt($display_url)); 322 322 } else { 323 323 // Truncated URL. 324 324 // Remove http schemas, and any single trailing / to make the display URL. 325 325 $display_url = preg_replace(['!^https?://!u', '!^([^/]+)/$!u'], ['', '$1'], trim($truncated_url)); 326 return sprintf('<a href="%s">%s%s</a>', oTxt($absolute_url), $display_url, $delim);326 return sprintf('<a href="%s">%s%s</a>', oTxt($absolute_url), oTxt($display_url), $delim); 327 327 } 328 328 }, $text); … … 349 349 if ('' != trim($w)) { 350 350 $search[] = '/\b(' . preg_quote($w) . ')\b/i' . $app->getParam('preg_u'); 351 $replace[] = '<span class="' . $class. '">$1</span>';351 $replace[] = '<span class="' . oTxt($class) . '">$1</span>'; 352 352 } 353 353 }
Note: See TracChangeset
for help on using the changeset viewer.