[evolvis-commits] r17290: a comma is valid in an URI

mirabilos at evolvis.org mirabilos at evolvis.org
Fri Jun 10 00:08:33 CEST 2011


Author: mirabilos
Date: 2011-06-10 00:08:33 +0200 (Fri, 10 Jun 2011)
New Revision: 17290

Modified:
   trunk/gforge_base/evolvisforge/gforge/common/include/utils.php
Log:
a comma is valid in an URI

Modified: trunk/gforge_base/evolvisforge/gforge/common/include/utils.php
===================================================================
--- trunk/gforge_base/evolvisforge/gforge/common/include/utils.php	2011-06-07 14:17:47 UTC (rev 17289)
+++ trunk/gforge_base/evolvisforge/gforge/common/include/utils.php	2011-06-09 22:08:33 UTC (rev 17290)
@@ -4,7 +4,7 @@
  *
  * Copyright 1999-2001, VA Linux Systems, Inc.
  * Copyright 2009, Roland Mas
- * Copyright © 2010
+ * Copyright © 2010, 2011
  *	Thorsten Glaser <t.glaser at tarent.de>
  *
  * This file is part of FusionForge.
@@ -1238,7 +1238,7 @@
 	    $unencoded_string));
 	/* replace all URIs with ^AURI^A */
 	$s = preg_replace(
-	    '|([a-zA-Z][a-zA-Z0-9+.-]*:[#0-9a-zA-Z;/?:@&=+$._!~*\'()%-]+)|',
+	    '|([a-zA-Z][a-zA-Z0-9+.-]*:[#0-9a-zA-Z;/?:@&=+$,_.!~*\'()%-]+)|',
 	    "\x01\$1\x01", $s);
 	if (!$s)
 		return htmlentities($unencoded_string, ENT_QUOTES, "UTF-8");



More information about the evolvis-commits mailing list