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

Prochaines Sessions

Les prochaines formations et démonstrations sont ouvertes, inscrivez-vous rapidement !

 

Démonstration de ProjeQtOr

(gratuit, sur inscription)
 

13 mai 2025 (10h30-12h)

5 juin 2025 (16h-17h30)

 
 

Planifiez avec ProjeQtOr

14 et 15 mai 2025 (9h-12h30)

18 et 19 juin 2025 (9h-12h30)

 
 

Administrez avec ProjeQtOr

20 et 21 mai (9h-12h30)

25 et 26 juin (9h-12h30)

 

 

 

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

More
More
23 Juil 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 Connexion or Create an account to join the conversation.

More
23 Juil 2014 23:50 - 23 Juil 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 Juil 2014 23:53 by jxavier. Reason: new information

Please Connexion or Create an account to join the conversation.

More
24 Juil 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 Connexion or Create an account to join the conversation.

More
25 Juil 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 Connexion or Create an account to join the conversation.

More
25 Juil 2014 15:46 - 25 Juil 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 Juil 2014 15:48 by babynus.

Please Connexion or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.053 seconds

Paramétrages de cookies

×

Cookies fonctionnels

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

Veuillez vous connecter pour voir vos activités!

Autres cookies

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