View Issue Details

IDProjectCategoryView StatusLast Update
0015202mantisbtotherpublic2012-11-23 18:02
Reporterriks Assigned Todregad  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionduplicate 
Product Version1.2.12 
Summary0015202: string_insert_hrefs() returns NULL in case of long URLs in text
Description

The preg_replace_callback() used in string_insert_hrefs() [core/string_api.php] gives an error if the parsed string contains a very long url and returns NULL, so no string is shown instead of the unchanged one.

Steps To Reproduce

Enter as description:

<button id="print" onclick="javascript: _gaq.push(['_trackEvent', 'xydata', 'print', '12345']); window.open('https://www.domain.com/lorem_ipsum/lorem_ipsum/lorem_ipsum/lorem_ipsum/lorem_ipsum/lorem_ipsum/lorem_ipsum/lorem_ipsum/lorem_ipsum/lorem_ipsum/lorem_ipsum.html', '_blank');"> Print </button>

TagsNo tags attached.

Relationships

duplicate of 0014447 closeddregad URLs longer than 152 characters are causing problems 

Activities

dregad

dregad

2012-11-12 08:32

developer   ~0034299

I don't get it. The URL you pasted in the steps to reproduce displays correctly.

Can you please more clearly describe what the problem is?

riks

riks

2012-11-12 08:48

reporter   ~0034300

Hmm, on our system it's not shown...

PHP is 5.3.3 with Apache 2.2.13 on Linux 2.6.31, maybe a PHP verion issue?

dregad

dregad

2012-11-12 11:01

developer   ~0034301

Are you sure you're on 1.2.12 ?

There is a known issue with 1.2.11 and PHP < 5.3.7 (see 0014447).

riks

riks

2012-11-12 13:23

reporter   ~0034303

Sorry, you are right -- I've overseen that there is a new version available and was really sure having the latest one running.

I've updated to 1.2.12 and this issue is fixed and should be closed or deleted.