[Webkit-unassigned] [Bug 15045] New: &t being added to the top of a textarea, and a > is being replaced by a ;
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Aug 22 06:42:40 PDT 2007
http://bugs.webkit.org/show_bug.cgi?id=15045
Summary: &t being added to the top of a textarea, and a > is
being replaced by a ;
Product: WebKit
Version: 522+ (nightly)
Platform: Macintosh
OS/Version: Mac OS X 10.4
Status: UNCONFIRMED
Severity: Critical
Priority: P2
Component: Forms
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: riegel at clearimageonline.com
This one is hard to duplicate. I have a very fragile test case that I can
duplicate the problem on. I would be happy to show someone but it may be
difficult to demonstrate with out me stepping through the procedure.
The bug happens intermitently and isn't always caught by me. I use Safari to
edit web sites, and when this bug cropps up my page gets mangled. It doesn't
happen all of the time. This is a test case where I was able to get it to
happen over and over again.
Here is how to duplicate it.
1. go to http://www.clearimageonline.com/pages/start/login.html
login as webkit, password: webkittestcase
2. Click the little icon next to snipshot.html
3. This opens a web editor right after the text "...it messes up frames" add a
space and save
4. What happens is &t gets added to the start of the text in the textarea, and
a > gets replaced with a ;
5. If you do a view source you can see that the sources does not contain these
spurious characters.
6. If you save again it will sve the spurious characters.
THE TEXT BEFORE LOOKS LIKE
------------------------
<<
function snipshot(f,edittext,cx,cy) locals temp,a,original do
# Use snipshot to edit the images, always save the original, see code below /#
if left(f,1)<>'/' then f=replaceall(dirname(page)+'/'+f,'//','/') /if
if isfile(f) then
a=ci_extract(f)
original=a[1]+a[6]+a[2]+ci_prefs[1,4]+'-ORIGINAL'+a[4]
if not(isfile(original)) then temp=syscp(f,original) /if
if isfile('/upload/file'+usernum) then
temp=sysmv(original,f+'ORIGINAL')
temp=ci_rmtemp(f)
temp=sysmv(f+'ORIGINAL',original)
temp=sysmv('/upload/file'+usernum,f)
/if
if cx='' or cy='' then
return '<a
exithref="http://services.snipshot.com/?snipshot_input='+domainurl+postprep(replaceall('/'+original,'//','/'))+'&snipshot_callback='+postprep(getlink(page))+'&snipshot_output=file'+usernum+'&snipshot_callback_method=post">'+edittext+'</a>'
/return
else
return '<a
exithref="http://services.snipshot.com/?snipshot_input='+domainurl+postprep(replaceall('/'+original,'//','/'))+'&snipshot_callback='+postprep(getlink(page))+'&snipshot_output=file'+usernum+'&snipshot_callback_method=post&snipshot_output_options='+postprep('{"size":{"max":{"width":'+cx+',"height":'+cy+'}}}')+'">'+edittext+'</a>'
/return
/if
else
return '' /return
/if
/function
f='test.jpg'
>>
<html>
<a href="<<page>>">RELOAD</a> | <a href="<<page>>" target="new">OPEN IN NEW
WINDOW</a><hr>
<<ci_img(f,'','','TRUE')>>
<br>Make sure you run this in its own window. It messes up frames<hr>
<<snipshot(f,'Edit This Picture',90,125)>>
</html>
THE TEXT AFTER LOOKS LIKE
------------------------
&t<<
function snipshot(f,edittext,cx,cy) locals temp,a,original do
# Use snipshot to edit the images, always save the original, see code below /#
if left(f,1)<>'/' then f=replaceall(dirname(page)+'/'+f,'//','/') /if
if isfile(f) then
a=ci_extract(f)
original=a[1]+a[6]+a[2]+ci_prefs[1,4]+'-ORIGINAL'+a[4]
if not(isfile(original)) then temp=syscp(f,original) /if
if isfile('/upload/file'+usernum) then
temp=sysmv(original,f+'ORIGINAL')
temp=ci_rmtemp(f)
temp=sysmv(f+'ORIGINAL',original)
temp=sysmv('/upload/file'+usernum,f)
/if
if cx='' or cy='' then
return '<a
exithref="http://services.snipshot.com/?snipshot_input='+domainurl+postprep(replaceall('/'+original,'//','/'))+'&snipshot_callback='+postprep(getlink(page))+'&snipshot_output=file'+usernum+'&snipshot_callback_method=post";'+edittext+'</a>'
/return
else
return '<a
exithref="http://services.snipshot.com/?snipshot_input='+domainurl+postprep(replaceall('/'+original,'//','/'))+'&snipshot_callback='+postprep(getlink(page))+'&snipshot_output=file'+usernum+'&snipshot_callback_method=post&snipshot_output_options='+postprep('{"size":{"max":{"width":'+cx+',"height":'+cy+'}}}')+'">'+edittext+'</a>'
/return
/if
else
return '' /return
/if
/function
f='test.jpg'
>>
<html>
<a href="<<page>>">RELOAD</a> | <a href="<<page>>" target="new">OPEN IN NEW
WINDOW</a><hr>
<<ci_img(f,'','','TRUE')>>
<br>Make sure you run this in its own window. It messes up frames<hr>
<<snipshot(f,'Edit This Picture',90,125)>>
</html>
--
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list