Skip to content

Commit 93f661d

Browse files
reboot1983ronytomen
authored andcommitted
XSS fix (#1017)
Fix for issue #1010
1 parent 954fc09 commit 93f661d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: include/global_session.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,11 @@
8484
var cactiVersion='<?php print $config['cacti_version'];?>';
8585
var theme='<?php print get_selected_theme();?>';
8686
var refreshIsLogout=<?php print $refreshIsLogout;?>;
87-
var refreshPage='<?php print $myrefresh['page'];?>';
87+
var refreshPage='<?php print htmlspecialchars($myrefresh['page']);?>';
8888
var refreshMSeconds=<?php print $myrefresh['seconds']*1000;?>;
8989
var urlPath='<?php print $config['url_path'];?>';
9090
var previousPage='';
91-
var requestURI='<?php print $_SERVER['REQUEST_URI'];?>';
91+
var requestURI='<?php print htmlspecialchars($_SERVER['REQUEST_URI']);?>';
9292
var searchFilter='<?php print __('Enter a search term');?>';
9393
var searchRFilter='<?php print __('Enter a regular expression');?>';
9494
var noFileSelected='<?php print __('No file selected');?>';

0 commit comments

Comments
 (0)