Skip to content

Commit 3e9edac

Browse files
HOTFIX BUU-184-36487 URL shortening
1 parent b59e021 commit 3e9edac

File tree

1 file changed

+1
-1
lines changed
  • public_html/profiles/os2dagsorden/modules/os2web_acadre_esdh/plugins/mm

1 file changed

+1
-1
lines changed

public_html/profiles/os2dagsorden/modules/os2web_acadre_esdh/plugins/mm/acadre.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,7 @@ function _os2web_acadre_esdh_pdf_file_path($path, $name) {
700700
function _acadre_esdh_mm_improve_body_html($data) {
701701
$data = _acadre_esdh_mm_remove_empty_tags($data);
702702
$url_strip_count = variable_get('os2dagsorden_url_strip_count','100');
703-
$data = preg_replace('/(<a.+?>)(.{0,'.$url_strip_count.'})(<\/a>)/is', '$1$2...$3', $data);
703+
$data = preg_replace('/(<a.+?>)(.{0,'.$url_strip_count.'}).*?(<\/a>)/is', '$1$2...$3', $data);
704704
$doc = new DOMDocument();
705705
$doc->loadHTML( $data);
706706
$elements = $doc->getElementsByTagName('img');

0 commit comments

Comments
 (0)