mirror of
https://github.com/vrana/adminer.git
synced 2025-08-07 23:27:17 +02:00
Use script_src for <script src>
This commit is contained in:
@@ -90,6 +90,14 @@ function script($source, $trailing = "\n") {
|
||||
return "<script>$source</script>$trailing";
|
||||
}
|
||||
|
||||
/** Return <script src> element
|
||||
* @param string
|
||||
* @return string
|
||||
*/
|
||||
function script_src($url) {
|
||||
return "<script src='" . h($url) . "'></script>\n";
|
||||
}
|
||||
|
||||
/** Escape for HTML
|
||||
* @param string
|
||||
* @return string
|
||||
|
Reference in New Issue
Block a user