]> Lady’s Gitweb - Gitweb/commit
gitweb: Consolidate escaping/validation of query string
authorPetr Baudis <redacted>
Sat, 23 Sep 2006 22:18:41 +0000 (00:18 +0200)
committerLady <redacted>
Mon, 6 Apr 2026 04:07:10 +0000 (00:07 -0400)
commit76773709652d84c08c604d5c8238f3815e1c2ab33a5c24f2c9bfd9d091b4608b
tree73fa0e91020b2de5deab0c658ce95a405b415e4622e56bb312b70cd1a7626715
parent21560470a9f81d4f92bdccaef92cba91d28bcc9d465db77eebd1e6c9572599c6
gitweb: Consolidate escaping/validation of query string

Consider:

http://repo.or.cz/?p=glibc-cvs.git;a=tree;h=2609cb0411389325f4ee2854cc7159756eb0671e;hb=2609cb0411389325f4ee2854cc7159756eb0671e

(click on the funny =__ify file)

We ought to handle anything in filenames and I actually see no reason why
we don't, modulo very little missing escaping that this patch hopefully
also fixes.

I have also made esc_param() escape [?=&;]. Not escaping [&;] was downright
buggy and [?=] just feels better escaped. ;-) YMMV.

Signed-off-by: Petr Baudis <redacted>
Signed-off-by: Junio C Hamano <redacted>
gitweb.perl
This page took 0.253993 seconds and 4 git commands to generate.