Explorar o código

Bug usernames with uppercase

https://github.com/marienfressinaud/FreshRSS/issues/439
Alexandre Alapetite %!s(int64=12) %!d(string=hai) anos
pai
achega
11b807e4c3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/lib_rss.php

+ 1 - 1
lib/lib_rss.php

@@ -219,7 +219,7 @@ function invalidateHttpCache() {
 }
 }
 
 
 function usernameFromPath($userPath) {
 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];
 		return $matches[1];
 	} else {
 	} else {
 		return '';
 		return '';