We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5450885 commit 4b31090Copy full SHA for 4b31090
gengraph.php
@@ -78,6 +78,14 @@
78
79
$knownlinks = update_palette($knownlinks);
80
81
+if (!isset($_GET['keep_link_descr'])) {
82
+ foreach ($knownlinks as $key => $link) {
83
+ $knownlinks[$key]['descr'] = trim(preg_replace('/\{([^{}]*+|(?R))*\}/', '', $knownlinks[$key]['descr']));
84
+ $knownlinks[$key]['descr'] = trim(preg_replace('/\[([^\[\]]*+|(?R))*\]/', '', $knownlinks[$key]['descr']));
85
+ $knownlinks[$key]['descr'] = trim(preg_replace('!\s+!', ' ', $knownlinks[$key]['descr']));
86
+ }
87
+}
88
+
89
if ($compat_rrdtool12) {
90
/* cannot use full-size-mode - must estimate height/width */
91
$height -= 65;
0 commit comments