Commit: bf2d12b3363faa3bd884d18ac18060799dfa8252 Author: danbrown <[email protected]> Tue, 1 Oct 2013 14:59:11 -0400 Parents: 9997cc0adfe1eb232c7a8b3948a15b052daccd08 Branches: master
Link: http://git.php.net/?p=web/bugs.git;a=commitdiff;h=bf2d12b3363faa3bd884d18ac18060799dfa8252 Log: Makes wrapping consistent between preview and submission. Changed paths: M www/bug.php M www/report.php Diff: diff --git a/www/bug.php b/www/bug.php index b27167a..b0f9bf2 100644 --- a/www/bug.php +++ b/www/bug.php @@ -931,7 +931,7 @@ if ($edit == 1 || $edit == 2) { ?> <?php if ($bug['status'] !== 'Spam') { ?> - <textarea cols="80" rows="8" name="ncomment" id="ncomment" wrap="physical"><?php echo htmlspecialchars($ncomment); ?></textarea> + <textarea cols="80" rows="8" name="ncomment" id="ncomment" wrap="soft"><?php echo htmlspecialchars($ncomment); ?></textarea> <?php } else { echo 'This bug has a SPAM status, so no additional comments are needed.'; @@ -1014,7 +1014,7 @@ if (!$logged_in) { <div> <input type="hidden" name="id" value="<?php echo $bug_id; ?>" /> <input type="hidden" name="edit" value="<?php echo $edit; ?>" /> - <textarea cols="80" rows="10" name="ncomment" wrap="physical"><?php echo htmlspecialchars($ncomment); ?></textarea> + <textarea cols="80" rows="10" name="ncomment" wrap="soft"><?php echo htmlspecialchars($ncomment); ?></textarea> <br /><input type="submit" name="preview" value="Preview"> <input type="submit" value="Submit" /> </div> diff --git a/www/report.php b/www/report.php index 2569657..c31174b 100644 --- a/www/report.php +++ b/www/report.php @@ -246,7 +246,7 @@ Bug Type: {$_POST['in']['bug_type']} Bug description: REPORT; - $ascii_report = "{$report}{$_POST['in']['sdesc']}\n\n" . wordwrap($fdesc); + $ascii_report = "{$report}{$_POST['in']['sdesc']}\n\n" . wordwrap($fdesc, 72); $ascii_report.= "\n-- \nEdit bug report at "; $ascii_report.= "{$site_method}://{$site_url}{$basedir}/bug.php?id=$cid&edit="; @@ -478,7 +478,7 @@ display_bug_error($errors); </p> </th> <td class="form-input"> - <textarea cols="80" rows="15" name="in[ldesc]" wrap="physical"><?php echo htmlspecialchars($_POST['in']['ldesc'], ENT_COMPAT, 'UTF-8'); ?></textarea> + <textarea cols="80" rows="15" name="in[ldesc]" wrap="soft"><?php echo htmlspecialchars($_POST['in']['ldesc'], ENT_COMPAT, 'UTF-8'); ?></textarea> </td> </tr> <tr> @@ -509,7 +509,7 @@ display_bug_error($errors); </p> </th> <td class="form-input"> - <textarea cols="80" rows="15" name="in[expres]" wrap="physical"><?php echo htmlspecialchars($_POST['in']['expres'], ENT_COMPAT, 'UTF-8'); ?></textarea> + <textarea cols="80" rows="15" name="in[expres]" wrap="soft"><?php echo htmlspecialchars($_POST['in']['expres'], ENT_COMPAT, 'UTF-8'); ?></textarea> </td> </tr> @@ -522,7 +522,7 @@ display_bug_error($errors); </p> </th> <td class="form-input"> - <textarea cols="80" rows="15" name="in[actres]" wrap="physical"><?php echo htmlspecialchars($_POST['in']['actres'], ENT_COMPAT, 'UTF-8'); ?></textarea> + <textarea cols="80" rows="15" name="in[actres]" wrap="soft"><?php echo htmlspecialchars($_POST['in']['actres'], ENT_COMPAT, 'UTF-8'); ?></textarea> </td> </tr> -- PHP Webmaster List Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
