Skip to content

Commit e24ecad

Browse files
Don't load external domains in iframe
1 parent a178a8e commit e24ecad

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

index.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,9 @@ function getDbInfo($d, $info, $padding = '') {
173173
} else {
174174
$iframe = substr($_SERVER['REQUEST_URI'], strpos($_SERVER['REQUEST_URI'], '?') + 1);
175175

176-
if (strpos($iframe, '&') !== false) {
176+
if (strpos($iframe, '//') === 0 || strpos($iframe, 'http') === 0) {
177+
$iframe = 'overview.php';
178+
} else if (strpos($iframe, '&') !== false) {
177179
$iframe = substr_replace($iframe, '.php?', strpos($iframe, '&'), 1);
178180
} else {
179181
$iframe .= '.php';

0 commit comments

Comments
 (0)