View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0015202 | mantisbt | other | public | 2012-11-12 07:16 | 2012-11-23 18:02 |
Reporter | riks | Assigned To | dregad | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | duplicate | ||
Product Version | 1.2.12 | ||||
Summary | 0015202: 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> | ||||
Tags | No tags attached. | ||||
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? |
|
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? |
|
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). |
|
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. |
|