Commit f4799d1c authored by Dries's avatar Dries
Browse files

- check_plain() missed its train.

parent 2d0df351
......@@ -707,9 +707,15 @@ function arg($index) {
}
}
/**
* Encode special characters in a plain-text string for display as HTML.
*/
function check_plain($text) {
return htmlspecialchars($text, ENT_QUOTES);
}
/**
* Prepare a URL for use in an HTML attribute. Strips harmful protocols.
*
*/
function check_url($uri) {
$uri = htmlspecialchars($uri, ENT_QUOTES);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment