Closed (fixed)
Project:
Classified Ads
Version:
6.x-2.x-dev
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Jan 2010 at 17:46 UTC
Updated:
14 Aug 2011 at 08:51 UTC
Jump to comment: Most recent file
Comments
Comment #1
Moscow commentedSome more info: once I input the text the couner shows actual number of chars. Then I hit SUBMIT, after the server returns the page the number of chars always 391. I tried to input 385, 455, 470 chars - after submitting it shows 391 below the text field.
Strange. I see it on localhost also.
I found another fact:
When I input latin chars - it works fine with 495 chars or so.
Once I substitute a dozen of latin chars out of 495 with cyrillic the error appears and the above described symptoms also appears.
It looks this line is responsible for calculating chars number on the server.
$current_body_length = strlen(trim($node->body));I do not see why it should behave buggy with cyrillic.
Any ideas?
Comment #2
Moscow commentedCan anyone share his knowlede abt it?
Comment #3
Moscow commentedTried everything, all in vain. Is there anybody out there?
Comment #4
pvasener commentedSubscribing
Comment #5
St4t0 commentedBug confirmed in 6.x-2.0-alpha6. Use of
strlen()instead ofdrupal_strlen()which returns number of bytes instead of number of characters.Patch fixes this
Already fixed in 6.x-3.0-beta1.
Comment #6
fgmProblem confirmed and patch fixes it.
Comment #7
fgmAlready committed 6.x-2.x as part of the #777472: Coding standard cleanup fix.