Wednesday, 2012-08-08

*** Joins: Paul_46 (~IceChat09@cpc1-enfi15-2-0-cust580.hari.cable.virginmedia.com)00:50
Paul_46dregad: lo?01:34
dregadmo01:34
Paul_46-echo '<form method="post" action="' . helper_mantis_url( 'jump_to_bug.php" class="bug-jump-form">' );01:35
Paul_46+echo '<form method="get" action="' . helper_mantis_url( 'view.php" class="bug-jump-form">' );01:35
Paul_46any reason why i can't do that in html api you can think of01:35
Paul_46for the jump to bug box ;p01:36
Paul_46saves a http request01:36
Paul_46imo01:36
*** Joins: giallu (~giallu@fedora/giallu)01:36
dregadget shows the vars in clear on the url01:38
dregadand you would have to sanitize what you get in view.php if not already done01:38
dregadas users could enter anything and not just a bug id in the form01:39
Paul_46you miss point ;p01:39
Paul_46atm01:39
dregadotherwise, i see no issues01:39
Paul_46we do a post to jump to bug01:39
Paul_46which does a redirect to view.php?id=101:39
Paul_46i.e. 2 requests01:39
dregadyes i know i just checked01:39
Paul_46and the only thing those two requests do is mean the form is post01:39
Paul_46whereas, we could do a get form and skip the request01:39
dregadjump_to_bug does gpc_get_int which converts the input from (anything) to, well, an int01:40
Paul_46yea, and we probably do gpc_get_int in view.php01:40
Paul_46so thats not an issue01:40
* dregad checks01:41
dregadyep01:41
Paul_46well, if we dont it's a security issue ;p01:41
dregadso i think we can't get rid of jump_to_bug.php as you say01:41
dregadsorry, CAN not can't01:41
Paul_46;)01:41
dregadjump_to_bug.php also does auth_ensure_user_authenticated();01:43
dregadwhich is not in view.php01:43
dregadso you might want to add that to bug_view_inc.php to be consistent01:45
Paul_46again you miss point :)01:58
Paul_46you can call view.php directly01:59
Paul_46and that might allow anonymous access01:59
Paul_46for instance01:59
Paul_46and we normally do call view.php directly01:59
Paul_46so that file is just a helper for the top box01:59
*** Joins: kirillka (~Miranda@195.242.142.17)05:09
*** Quits: kirillka (~Miranda@195.242.142.17) (Quit: kirillka)07:02
*** Quits: dregad (~dregad@155.250.128.35) (Quit: Ex-Chat)08:40
*** Quits: giallu (~giallu@fedora/giallu) (Ping timeout: 246 seconds)09:47
*** Quits: sdfjkljkdfsljkl (~sdfjkljkd@static.96.23.63.178.clients.your-server.de) (*.net *.split)10:55
*** Joins: sdfjkljkdfsljkl (~sdfjkljkd@static.96.23.63.178.clients.your-server.de)10:57
*** Joins: giallu (~giallu@fedora/giallu)15:20
*** Quits: Paul_46 (~IceChat09@cpc1-enfi15-2-0-cust580.hari.cable.virginmedia.com) (Quit: He who laughs last, thinks slowest)16:12
*** Quits: giallu (~giallu@fedora/giallu) (Ping timeout: 246 seconds)16:25
*** Quits: sdfjkljkdfsljkl (~sdfjkljkd@static.96.23.63.178.clients.your-server.de) (Remote host closed the connection)17:00
*** Joins: sdfjkljkdfsljkl (~sdfjkljkd@static.96.23.63.178.clients.your-server.de)17:00
*** Joins: kirillka (~Miranda@195.242.142.17)22:43
*** Joins: giallu (~giallu@fedora/giallu)23:58

Generated by irclog2html.py 2.10.0 by Marius Gedminas - find it at mg.pov.lt!