[aur-dev] Output buffering and header() usage

Lukas Fleischer archlinux at cryptocrack.de
Wed Jun 22 09:47:01 EDT 2011


On Tue, Jun 21, 2011 at 11:19:29AM -0500, Dan McGee wrote:
> On Tue, Jun 21, 2011 at 11:11 AM, Lukas Fleischer
> <archlinux at cryptocrack.de> wrote:
> > Some possible solutions/workarounds that came into my mind:
> >
> > * Use javascript redirects instead.
> >
> > * Just buffer output everywhere (ob_start(), ob_flush()).
> >
> > * Rewrite package search to retrieve package search results before even
> >  printing out anything.
> >
> > Thoughts? I tend to prefer the latter, cause it seems to be the only
> > clean way (and the MVC way) of doing this.
> 
> "Don't automatically redirect" is actually what I just did. Not
> because archweb had the bug, but I was finding the behavior annoying,
> and at least in the case where a package may or may not be in testing,
> sometimes the redirect happens while other times it doesn't.

Good point. Just fixed that [1]. Thanks!

[1] http://projects.archlinux.org/aur.git/commit/?id=0e9f8c0f


More information about the aur-dev mailing list