Procházet zdrojové kódy

Bug usernames with uppercase

https://github.com/marienfressinaud/FreshRSS/issues/439
Alexandre Alapetite před 12 roky
rodič
revize
11b807e4c3
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      lib/lib_rss.php

+ 1 - 1
lib/lib_rss.php

@@ -219,7 +219,7 @@ function invalidateHttpCache() {
 }
 
 function usernameFromPath($userPath) {
-	if (preg_match('%/([a-z0-9]{1,16})_user\.php$%', $userPath, $matches)) {
+	if (preg_match('%/([A-Za-z0-9]{1,16})_user\.php$%', $userPath, $matches)) {
 		return $matches[1];
 	} else {
 		return '';