Mantis Bug Tracker
 

View Issue Details Jump to Notes ] Wiki ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0010283mantisbthtmlpublic2009-04-02 06:362009-06-26 12:02
ReporterAntonB 
Assigned Tojreese 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionduplicate 
PlatformOSOS Version
Product Version1.1.6 
Target VersionFixed in Version 
Summary0010283: The url link containing national chars is wrong parsed
DescriptionIf the given link in description or comment contains the national chars (cyrrilic) the "string_insert_hrefs()" cuts the link at first non latin char.
Steps To ReproduceSee the following link

h t t p ://mail.ru/???????_?????

the result is http://mail.ru/???????_????? [^]

Additional Informationnew code for the function "string_insert_hrefs()"

        $in=array(
            '`(https?|ftp|svn|news)://[^\s<>]+`si',
                 '`www\.[^\s<>]+`si'
                );
            $out=array(
                '$0 [$0]',
                 'http://$0 [^] [http://$0 [^]]'
                );
        
            
        $p_string = preg_replace($in,$out,$p_string);
TagsNo tags attached.
Attached Files

- Relationships
duplicate of 0010273closedgrangeway Links with Umlauts to local server 

-  Notes
User avatar (0021369)
AntonB (reporter)
2009-04-02 06:40

:(
This site doesn't display cyrillic correctly.
My DB tables set to cp1251 encoding and DB set to UTF8
User avatar (0022166)
AntonB (reporter)
2009-06-15 07:22

Not resolved in 1.2.0a3
The defect is still there.
User avatar (0022167)
AntonB (reporter)
2009-06-15 07:24

http://mail.ru/ [^]привет/здорово/1.html
User avatar (0022168)
AntonB (reporter)
2009-06-15 07:30
edited on: 2009-06-15 07:44

There is one more strange behavior maybe it's bug in PHP itself but you should try to test this link http://mail.ru/ [^]привет/Радуемся/1.html if this link will work then defect is resolved.

User avatar (0022169)
jreese (administrator)
2009-06-15 09:47

This is still a duplicate of 0010273 -- please do not reopen.
User avatar (0022170)
AntonB (reporter)
2009-06-15 09:53

Ok, I won't but will it be resolved?

- Issue History
Date Modified Username Field Change
2009-04-02 06:36 AntonB New Issue
2009-04-02 06:40 AntonB Note Added: 0021369
2009-04-02 08:14 jreese Relationship added duplicate of 0010273
2009-04-02 08:14 jreese Status new => resolved
2009-04-02 08:14 jreese Resolution open => fixed
2009-04-02 08:14 jreese Assigned To => jreese
2009-06-15 07:22 AntonB Note Added: 0022166
2009-06-15 07:22 AntonB Status resolved => feedback
2009-06-15 07:22 AntonB Resolution fixed => reopened
2009-06-15 07:24 AntonB Note Added: 0022167
2009-06-15 07:30 AntonB Note Added: 0022168
2009-06-15 07:44 AntonB Note Edited: 0022168 View Revisions
2009-06-15 09:47 jreese Note Added: 0022169
2009-06-15 09:47 jreese Status feedback => resolved
2009-06-15 09:47 jreese Resolution reopened => duplicate
2009-06-15 09:53 AntonB Note Added: 0022170
2009-06-26 12:02 vboctor Status resolved => closed


MantisBT 1.2.2 git master-1.2.x[^]
Copyright © 2000 - 2010 MantisBT Group
Time: 0.2640 seconds.
memory usage: 1,968 KB
Powered by Mantis Bugtracker