mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Escape ' Ticket #143
This commit is contained in:
parent
55c613269b
commit
d2aa8cd682
@ -849,11 +849,10 @@ function get_user_expiration_date($username) {
|
||||
|
||||
function is_account_disabled($username) {
|
||||
global $config;
|
||||
foreach($config['system']['user'] as $user) {
|
||||
if(isset($user['disabled'])) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
foreach($config['system']['user'] as $user)
|
||||
if($user == $username)
|
||||
if(isset($user['disabled']))
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@ -414,7 +414,7 @@ echo "<script type=\"text/javascript\" language=\"javascript\" src=\"/javascript
|
||||
$a_schedules = &$config['schedules']['schedule'];
|
||||
$schedule_span_begin = "";
|
||||
$schedule_span_end = "";
|
||||
$sched_caption = "";
|
||||
$sched_caption_escaped = "";
|
||||
$sched_content = "";
|
||||
$schedstatus = false;
|
||||
$dayArray = array ('Mon','Tues','Wed','Thur','Fri','Sat','Sun');
|
||||
@ -514,8 +514,8 @@ echo "<script type=\"text/javascript\" language=\"javascript\" src=\"/javascript
|
||||
$sched_content .= $dayFriendly . "; " . $timeFriendly . "<br>";
|
||||
}
|
||||
}
|
||||
$sched_caption = $schedule['descr'];
|
||||
$schedule_span_begin = "<span style=\"cursor: help;\" onmouseover=\"domTT_activate(this, event, 'content', '<h1>$sched_caption</h1><p>$sched_content</p>', 'trail', true, 'delay', 0, 'fade', 'both', 'fadeMax', 93, 'styleClass', 'niceTitle');\" onmouseout=\"this.style.color = ''; domTT_mouseout(this, event);\"><U>";
|
||||
$sched_caption_escaped = str_replace("'", "\'", $schedule['descr']);
|
||||
$schedule_span_begin = "<span style=\"cursor: help;\" onmouseover=\"domTT_activate(this, event, 'content', '<h1>{$sched_caption_escaped}</h1><p>{$sched_content}</p>', 'trail', true, 'delay', 0, 'fade', 'both', 'fadeMax', 93, 'styleClass', 'niceTitle');\" onmouseout=\"this.style.color = ''; domTT_mouseout(this, event);\"><U>";
|
||||
$schedule_span_end = "</U></span>";
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user