1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-08 15:47:00 +02:00

Hide window.opener from pages opened in a new window (bug #561)

This commit is contained in:
Jakub Vrana
2018-01-23 12:53:22 +01:00
parent dbc76a2b1e
commit b14aa75a98
22 changed files with 35 additions and 27 deletions

View File

@@ -105,6 +105,13 @@ function nonce() {
return ' nonce="' . get_nonce() . '"';
}
/** Get a target="_blank" attribute
* @return string
*/
function target_blank() {
return ' target="_blank" rel="noopener"';
}
/** Escape for HTML
* @param string
* @return string