Skip to content

Commit

Permalink
try just url encode #58
Browse files Browse the repository at this point in the history
  • Loading branch information
dqwiki committed Mar 21, 2016
1 parent b53e599 commit 98c2ee0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public_html/src/statsLib.php
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ function getPermsDB() {
$perms_array = explode("|", $users);
for ($i = 0; $i < count($perms_array); $i = $i + 5) {
$users = implode("|", array_slice($perms_array, $i, 5));
$users = str_replace(" ", "_", $users);
//$users = str_replace(" ", "_", $users);
$handle = fopen("https://en.wikipedia.org/w/api.php?action=query&format=php&list=users&ususers=" . urlencode($users) . "&usprop=groups", "r");
$read = fread($handle, "4096");
$Perms = unserialize($read);
Expand Down Expand Up @@ -678,4 +678,4 @@ function printSitenoticeMessages(){

return $table . "</table>\n";
}
?>
?>

0 comments on commit 98c2ee0

Please sign in to comment.