Skip to content

Commit

Permalink
Ensure URIs are escaped before being output
Browse files Browse the repository at this point in the history
  • Loading branch information
leedxw committed Feb 12, 2025
1 parent c378841 commit cc43edc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/pagination.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function pagination($q = null, $mode = null, $uri = null)
}
printf('<a href="%s" rel="previous">
Previous <span class="hidden">page</span>
</a>', $uri);
</a>', esc_url($uri));
echo "</div>";
}

Expand Down Expand Up @@ -116,7 +116,7 @@ function pagination($q = null, $mode = null, $uri = null)
<a href="%s" rel="next">
Next <span class="hidden">page</span>
</a>
</div>', $uri);
</div>', esc_url($uri));
}

$_SERVER['REQUEST_URI'] = $_;
Expand Down

0 comments on commit cc43edc

Please sign in to comment.