com web/bugs: - Hide the bug information from the <title> tag when user not logged in: www/bug.php

From: Date: Sun, 13 May 2012 14:42:43 +0000
Subject: com web/bugs: - Hide the bug information from the <title> tag when user not logged in: www/bug.php
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-13522@lists.php.net to get a copy of this message
Commit: a756ece4b6f4ff1693e3e69e0edaeffcf91aceef Author: Felipe Pena <felipensp@gmail.com> Sun, 13 May 2012 11:42:43 -0300 Parents: 413cac5b5419e09c9ebc2832542d4866419adb38 Branches: master Link: http://git.php.net/?p=web/bugs.git;a=commitdiff;h=a756ece4b6f4ff1693e3e69e0edaeffcf91aceef Log: - Hide the bug information from the <title> tag when user not logged in Changed paths: M www/bug.php Diff: diff --git a/www/bug.php b/www/bug.php index 4fea7e3..6b3d1f5 100644 --- a/www/bug.php +++ b/www/bug.php @@ -560,7 +560,7 @@ switch (txfield('bug_type', $bug, isset($_POST['in']) ? $_POST['in'] : null)) } response_header( - "{$bug_type} #{$bug_id} :: " . htmlspecialchars($bug['sdesc']), + $show_bug_info ? "{$bug_type} #{$bug_id} :: " . htmlspecialchars($bug['sdesc']) : "You must be logged in", ($bug_id != 'PREVIEW') ? " <link rel='alternate' type='application/rss+xml' title='{$bug['package_name']} Bug #{$bug['id']} - RDF' href='rss/bug.php?id={$bug_id}' /> <link rel='alternate' type='application/rss+xml' title='{$bug['package_name']} Bug #{$bug['id']} - RSS 2.0' href='rss/bug.php?id={$bug_id}&format=rss2' />

« previous php.webmaster (#13522) next »