Explorar el Código

Bug usernames with uppercase

https://github.com/marienfressinaud/FreshRSS/issues/439
Alexandre Alapetite hace 12 años
padre
commit
11b807e4c3
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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 '';