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:
@@ -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
|
||||
|
Reference in New Issue
Block a user