Commit 603c82d7 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

Merge branch '6152-add-subscription-screen' into '1.3-fixes'

Resolve "Add subscription screen" crash in 1.3.1

See merge request fusiondirectory/fd!884
Showing with 16 additions and 0 deletions
+16 -0
...@@ -26,6 +26,22 @@ ...@@ -26,6 +26,22 @@
*/ */
require_once ("variables.inc"); require_once ("variables.inc");
/*!
* \brief Escape string for HTML output
*/
function htmlescape ($str)
{
return htmlspecialchars($str, ENT_QUOTES | ENT_HTML5, 'UTF-8');
}
/*!
* \brief Unescape string for HTML output, reverse of htmlescape
*/
function htmlunescape ($html)
{
return html_entity_decode($html, ENT_QUOTES | ENT_HTML5, 'UTF-8');
}
function html_trace($errstr = "") function html_trace($errstr = "")
{ {
static $hideArgs = array( static $hideArgs = array(
......
Supports Markdown
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