Subversion-Projekte lars-tiefland.ci

Revision

Revision 2257 | Zur aktuellen Revision | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 2257 Revision 2258
Zeile 394... Zeile 394...
394
	{
394
	{
395
		// Find and replace any URLs.
395
		// Find and replace any URLs.
396
		if ($type !== 'email' && preg_match_all('#(\w*://|www\.)[a-z0-9]+(-+[a-z0-9]+)*(\.[a-z0-9]+(-+[a-z0-9]+)*)+(/([^\s()<>;]+\w)?/?)?#i', $str, $matches, PREG_OFFSET_CAPTURE | PREG_SET_ORDER))
396
		if ($type !== 'email' && preg_match_all('#(\w*://|www\.)[a-z0-9]+(-+[a-z0-9]+)*(\.[a-z0-9]+(-+[a-z0-9]+)*)+(/([^\s()<>;]+\w)?/?)?#i', $str, $matches, PREG_OFFSET_CAPTURE | PREG_SET_ORDER))
397
		{
397
		{
398
			// Set our target HTML if using popup links.
398
			// Set our target HTML if using popup links.
399
			$target = ($popup) ? ' target="_blank"' : '';
399
			$target = ($popup) ? ' target="_blank" rel="noopener"' : '';
Zeile 400... Zeile 400...
400
 
400
 
401
			// We process the links in reverse order (last -> first) so that
401
			// We process the links in reverse order (last -> first) so that
402
			// the returned string offsets from preg_match_all() are not
402
			// the returned string offsets from preg_match_all() are not
403
			// moved as we add more HTML.
403
			// moved as we add more HTML.