mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Fix ' in alias description. Confirmed working fix for ticket #143
This commit is contained in:
parent
b3a07b12ff
commit
0069f9fc15
@ -970,7 +970,8 @@ function rule_popup($src,$srcport,$dst,$dstport){
|
||||
if ($strlength >= $maxlength)
|
||||
$alias_caption = substr($alias_caption, 0, $maxlength) . "...";
|
||||
|
||||
$span_begin = "<span style=\"cursor: help;\" onmouseover=\"domTT_activate(this, event, 'content', '<h1>$alias_caption</h1><p>$alias_content_text</p>', 'trail', true, 'delay', 0, 'fade', 'both', 'fadeMax', 93, 'styleClass', 'niceTitle');\" onmouseout=\"this.style.color = ''; domTT_mouseout(this, event);\"><U>";
|
||||
$alias_caption_escaped = str_replace("'", "\'", $alias_caption);
|
||||
$span_begin = "<span style=\"cursor: help;\" onmouseover=\"domTT_activate(this, event, 'content', '<h1>$alias_caption_escaped</h1><p>$alias_content_text</p>', 'trail', true, 'delay', 0, 'fade', 'both', 'fadeMax', 93, 'styleClass', 'niceTitle');\" onmouseout=\"this.style.color = ''; domTT_mouseout(this, event);\"><U>";
|
||||
|
||||
if ($alias_name['name'] == $src)
|
||||
$alias_src_span_begin = $span_begin;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user