X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=application%2FUtils.php;h=0166ee2ac0e132035af72e132a50ceb4368933e7;hb=7af9a41881ed0b9d44d18a0ce03a123a8441adf5;hp=7d7eaffdb71b86abe8b56b879fcbb968a7fb511e;hpb=ceeb8fbeb89f69e41791ae192d073d6afea00f4b;p=github%2Fshaarli%2FShaarli.git diff --git a/application/Utils.php b/application/Utils.php index 7d7eaffd..0166ee2a 100644 --- a/application/Utils.php +++ b/application/Utils.php @@ -32,6 +32,10 @@ function logm($logFile, $clientIp, $message) * * In Shaarli, they are used as a tinyurl-like link to individual entries, * e.g. smallHash('20111006_131924') --> yZH23w + * + * @param string $text Create a hash from this text. + * + * @return string generated small hash. */ function smallHash($text) { @@ -106,7 +110,9 @@ function unescape($str) } /** - * Link sanitization before templating + * Sanitize link before rendering. + * + * @param array $link Link to escape. */ function sanitizeLink(&$link) {