Skip to content

Commit

Permalink
Correctly decode user names in subscriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianheine committed Oct 21, 2010
1 parent 6353ef5 commit 3772285
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions inc/subscription.php
Expand Up @@ -175,6 +175,10 @@ function subscription_find($page, $pre) {
// This is an old subscription file.
$subscription = trim($subscription) . " every\n";
}

list($user, $rest) = explode(' ', $subscription, 2);
$subscription = rawurldecode($user) . " " . $rest;

if (preg_match(subscription_regex($pre), $subscription,
$line_matches) === 0) {
continue;
Expand Down

0 comments on commit 3772285

Please sign in to comment.