From kde-commits Fri Jun 27 20:30:50 2008 From: Daniel Molkentin Date: Fri, 27 Jun 2008 20:30:50 +0000 To: kde-commits Subject: www/areas/events Message-Id: <1214598650.275130.13605.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=121459866128557 SVN commit 825328 by danimo: try to fix bug reported by nightrose M +1 -1 upcomingeventlister.inc --- trunk/www/areas/events/upcomingeventlister.inc #825327:825328 @@ -17,7 +17,7 @@ $gCalDateEnd = gmdate($dateformat, $item['endTime']-(24*60*60)); // otherwise it's off by one day and we can't compare // reprocess description - $linked_description=preg_replace( '/(http|ftp|irc|webdav)+(s)?:(\/\/)((\w|\.)+)(\/)?(\S+)?/i', '\4', $item['description'] ); + $linked_description=preg_replace( '/(http|ftp|irc|webdav)+(s)?:(\/\/)((\w|\.|-)+)(\/)?(\S+)?/i', '\4', $item['description'] ); $linked_description=str_replace("\n\n", "

", $linked_description); // Now, let's run it through some str_replaces, and store it with the date for easy sorting later