6.0.0-git
2021-01-18

[#6024] Hard wrap in preference texarea breaks long URLs in IE
Summary Hard wrap in preference texarea breaks long URLs in IE
Queue Horde Framework Packages
Queue Version HEAD
Type Bug
State Resolved
Priority 1. Low
Owners
Requester jason (at) linuxbox (dot) com
Created 2007-12-20 (4778 days ago)
Due
Updated 2007-12-20 (4778 days ago)
Assigned
Resolved 2007-12-20 (4778 days ago)
Milestone
Patch No

History
2007-12-20 21:21:31 Chuck Hagenbuch Comment #4
Type ⇒ Bug
State ⇒ Resolved
Priority ⇒ 1. Low
Reply to this comment
This was a bug.
2007-12-20 21:21:19 Chuck Hagenbuch Comment #3
State ⇒ Resolved
Reply to this comment
I've removed the wrap tag attribute HEAD and the FRAMEWORK_3 branch.
2007-12-20 21:16:07 Chuck Hagenbuch Comment #2
State ⇒ Feedback
Reply to this comment
We normally just want newlines where users enter them, so we shouldn't 
even need String::wrap() - we've removed the wrap attribute from most 
other textareas. Or am I missing something?
2007-12-20 18:11:11 jason (at) linuxbox (dot) com Comment #1
Type ⇒ Enhancement
State ⇒ New
Priority ⇒ 1. Low
Summary ⇒ Hard wrap in preference texarea breaks long URLs in IE
Queue ⇒ Horde Framework Packages
Reply to this comment
The file templates/prefs/textarea.inc uses the attribute wrap="hard"   
IE inserts line break characters where the wrapping occurs before 
sending the data back to the server.  If a long URL is entered as part 
of a user's signature, the URL is broken.  Firefox does not respect 
the wrap attribute and therefore does not exhibit this problem.  Two 
possible solutions are:

1 - Use wrap="soft" -- this will wrap in the browser, but be sent to 
the server without line breaks.

2 - Don't use the wrap attribute at all (it's not part of the HTML 4 
or XHTML standards) and have the wrapping done on the server side 
using String::wrap which prevents breaking long words (or URLs)

Saved Queries