cvs: pearweb /public_html/bugs bug.php

From: Date: Sat, 23 May 2009 16:33:48 +0000
Subject: cvs: pearweb /public_html/bugs bug.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-8431@lists.php.net to get a copy of this message
clockwerx Sat May 23 16:33:48 2009 UTC Modified files: /pearweb/public_html/bugs bug.php Log: Bug #16231 - Removes wordwrapping from bugs, shifts preview around a little; fixes broken links. http://cvs.php.net/viewvc.cgi/pearweb/public_html/bugs/bug.php?r1=1.208&r2=1.209&diff_format=u Index: pearweb/public_html/bugs/bug.php diff -u pearweb/public_html/bugs/bug.php:1.208 pearweb/public_html/bugs/bug.php:1.209 --- pearweb/public_html/bugs/bug.php:1.208 Sat Mar 7 16:20:34 2009 +++ pearweb/public_html/bugs/bug.php Sat May 23 16:33:48 2009 @@ -15,7 +15,7 @@ * @package Bugs * @copyright Copyright (c) 1997-2005 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License - * @version $Id: bug.php,v 1.208 2009/03/07 16:20:34 wiesemann Exp $ + * @version $Id: bug.php,v 1.209 2009/05/23 16:33:48 clockwerx Exp $ */ /* @@ -752,7 +752,8 @@ <?php if (isset($_POST['preview']) && !empty($ncomment)) { - $preview = '<div class="comment">'; + $preview = ''; + $preview .= '<div class="comment" style="margin-bottom: 1.0em; padding: 0.5em; background-color: rgb(240, 240, 240);">'; $preview .= "<strong>[" . format_date(time()) . "] "; if (isset($auth_user) && $auth_user) { $preview .= '<a href="/user/' . $auth_user->handle . '">' . @@ -760,10 +761,10 @@ } else { $preview .= $pbu->spamProtect(htmlspecialchars($from)); } - $preview .= "</strong>\n<pre class=\"note\">"; - $comment = wordwrap($ncomment, 72); + $preview .= "</strong>\n<br /><span class=\"note\" style=\"white-space: pre\">"; + $comment = $ncomment; $preview .= make_ticket_links(addlinks($comment)); - $preview .= "</pre>\n"; + $preview .= "</span>\n"; $preview .= '</div>'; } else { $preview = ''; @@ -889,7 +890,7 @@ <?php } } - echo $preview; + ?> <table id="bugform"> @@ -1077,12 +1078,17 @@ <label for="ncomment" accesskey="m"><b>New<?php if ($edit==1) echo "/Additional"?> Co<span class="accesskey">m</span>ment:</b></label> </p> + <?php echo $preview; ?> + <textarea cols="60" rows="10" id="ncomment" name="ncomment" wrap="physical"><?php echo clean($ncomment) ?></textarea> + <p style="margin-top: 0em;"> <input type="submit" name="preview" value="Preview" />&nbsp;<input type="submit" value="Submit" /> </p> + + </form> <?php @@ -1295,7 +1301,7 @@ $status = substr($comment, 0, $needle) . $search; } - $comment = htmlspecialchars(wordwrap($fix, 72, "\n", true), ENT_QUOTES, 'ISO-8859-15', false); + $comment = htmlspecialchars($fix, ENT_QUOTES, 'ISO-8859-15', false); $comment = make_ticket_links(addlinks($comment)); $comment = $status . $comment;

« previous php.pear.core (#8431) next »