View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Support us on Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - Listing ulrs in Notes adds line breaks when displayed - ProjeQtOr
 
 

Listing ulrs in Notes adds line breaks <br /> when displayed

More
More
23 Jul 2014 23:01 #2 by babynus
Hi,

I cannot reproduce.
Have a look at ticket on Demo : demo.projeqtor.org/view/main.php?directA...s=Ticket&objectId=53
Note is correctly displayed.
And I ckecked Database : value is correct.

Where exactly do you get this display ?

Babynus
Administrator of ProjeQtOr web site

Please Log in or Create an account to join the conversation.

More
23 Jul 2014 23:50 - 23 Jul 2014 23:53 #3 by jxavier
You are right, the http:// is missing at the begining of each url (I just realized that the forum hides that part when the message is posted)

1. track.projeqtor.org/view/main.php
2. track.projeqtor.org/view/main.php
3. track.projeqtor.org/view/main.php

I have added a new note in demo.projeqtor.org/view/main.php?directA...s=Ticket&objectId=53 and it's displayed as 1. track.projeqtor.org/view/main.php
2. track.projeqtor.org/view/main.php
3. track.projeqtor.org/view/main.php
Last edit: 23 Jul 2014 23:53 by jxavier. Reason: new information

Please Log in or Create an account to join the conversation.

More
24 Jul 2014 16:03 #4 by babynus
It's clear now !

Ticket #1470 recorded.

Thanks for reporting the issue.

Babynus
Administrator of ProjeQtOr web site

Please Log in or Create an account to join the conversation.

More
25 Jul 2014 14:29 #5 by Jean-Luc
Found the same problem.
Cause located, but it’s a complex "preg_replace" function that I don’t handle very well.

Comment line 1473 (in V4.3.2) of the module /view/objectDetail.php to by-pass the problem.
Links are no more converted in clickable links, but the erroneous 'br' has vanished. ;)

Please Log in or Create an account to join the conversation.

More
25 Jul 2014 15:46 - 25 Jul 2014 15:48 #6 by babynus
Hi,

Thanks Jean Lic for this workaround.

It fact global fix will be deployed in V4.4

Fix is in objectDetail.php, line 1472, replace :
$strDataHTML = htmlEncode($note->note,'print');
      $strDataHTML = preg_replace('@(https?://([-\w\.]+[-\w])+(:\d+)?(/([\w/_\.#-]*(\?\S+)?[^\.\s])?)?)@', '<a href="$1" target="_blank">$1</a>', $strDataHTML);
      echo $strDataHTML;
with
$strDataHTML = htmlEncode($note->note,'');
      $strDataHTML = preg_replace('@(https?://([-\w\.]+[-\w])+(:\d+)?(/([\w/_\.#-]*(\?\S+)?[^\.\s])?)?)@', '<a href="$1" target="_blank">$1</a>', $strDataHTML);
      $strDataHTML = nl2br($strDataHTML);
      echo $strDataHTML;

Babynus
Administrator of ProjeQtOr web site
Last edit: 25 Jul 2014 15:48 by babynus.

Please Log in or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.041 seconds

Cookies settings

×

Functional Cookies

Ce site utilise des cookies pour assurer son bon fonctionnement et ne peuvent pas être désactivés de nos systèmes. Nous ne les utilisons pas à des fins publicitaires. Si ces cookies sont bloqués, certaines parties du site ne pourront pas fonctionner.

Session

Please login to see yours activities!

Other cookies

Ce site web utilise un certain nombre de cookies pour gérer, par exemple, les sessions utilisateurs.