From: Brion Vibber Date: Wed, 17 Mar 2010 22:49:10 +0000 (-0700) Subject: Add doc comments on saveHTMLFile; drop the extra
wrapping the contents to make... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=013647f0ba29949e9025330b9692ad3113b1d644;p=quix0rs-gnu-social.git Add doc comments on saveHTMLFile; drop the extra
wrapping the contents to make it easier to extract without getting extra markup. --- diff --git a/plugins/OStatus/classes/Ostatus_profile.php b/plugins/OStatus/classes/Ostatus_profile.php index e5210cda13..0abc1ee19a 100644 --- a/plugins/OStatus/classes/Ostatus_profile.php +++ b/plugins/OStatus/classes/Ostatus_profile.php @@ -1676,10 +1676,18 @@ class Ostatus_profile extends Memcached_DataObject throw new Exception("Couldn't find a valid profile for '$addr'"); } + /** + * Store the full-length scrubbed HTML of a remote notice to an attachment + * file on our server. We'll link to this at the end of the cropped version. + * + * @param string $title plaintext for HTML page's title + * @param string $rendered HTML fragment for HTML page's body + * @return File + */ function saveHTMLFile($title, $rendered) { $final = sprintf("\n%s". - '
%s
', + '%s', htmlspecialchars($title), $rendered);