Bladeren bron

Merge pull request #1199 from Arantor/release-2.1

Minor things
Arantor 10 jaren geleden
bovenliggende
commit
0e0d4d5249
2 gewijzigde bestanden met toevoegingen van 1 en 4 verwijderingen
  1. 0 3
      Sources/Subs-Post.php
  2. 1 1
      Sources/Subs.php

+ 0 - 3
Sources/Subs-Post.php

@@ -823,9 +823,6 @@ function sendpm($recipients, $subject, $message, $store_outbox = false, $from =
 			'name' => $user_info['name'],
 			'username' => $user_info['username']
 		);
-	// Probably not needed.  /me something should be of the typer.
-	else
-		$user_info['name'] = $from['name'];
 
 	// This is the one that will go in their inbox.
 	$htmlmessage = $smcFunc['htmlspecialchars']($message, ENT_QUOTES);

+ 1 - 1
Sources/Subs.php

@@ -1117,7 +1117,7 @@ function parse_bbc($message, $smileys = true, $cache_id = '', $parse_tags = arra
 			array(
 				'tag' => 'color',
 				'type' => 'unparsed_equals',
-				'test' => '(#[\da-fA-F]{3}|#[\da-fA-F]{6}|[A-Za-z]{1,20}|rgb\(\d{1,3}, ?\d{1,3}, ?\d{1,3}\))\]',
+				'test' => '(#[\da-fA-F]{3}|#[\da-fA-F]{6}|[A-Za-z]{1,20}|rgb\((?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\s?,\s?){2}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\))\]',
 				'before' => '<span style="color: $1;" class="bbc_color">',
 				'after' => '</span>',
 			),