Tuesday, 2009-12-15

../irclogs/#mantishelp.2009-12-15.log
--- scribe started ---00:00
kirillkapaul__: around?09:38
kirillkanuclear_eclipse: John?10:00
kirillkaAnyone know how git.mantisforge.org work?10:03
* kirillka slaps paul__ around a bit with a large trout12:14
* kirillka slaps paul__ around a bit with a large trout14:15
kirillkanuclear_eclipse: John, around?14:29
paul__lo14:36
kirillkapaul__: lo14:37
paul__what?14:37
kirillkapaul__: Remember me, how you set mantisforge.org14:37
kirillkaYou sometime talk me how you set up, that users don't create in machine but on web exists14:38
kirillkaBut I can found on irclog14:38
paul__it uses the source available from http://repo.or.cz/14:39
paul__which recently got updated14:39
kirillkaYes. But default I have pure gitweb without user registration and work with one login git14:40
kirillkabut on mantisforge I login with own login14:41
kirillkagit+ssh://kirill@git.mantisforge.org14:41
paul__which uses some funky logic written by http://repo.or.cz/ people14:41
kirillkayes14:42
paul__might also be worth while looking at something like http://www.gitorious.org/gitorious14:43
paul__There's a number of git hosting sites/projects etc listed at http://git.or.cz/gitwiki/GitHosting14:43
kirillkathis better than gitweb with exchange?14:48
paul__no idea14:56
paul__I just picked one and tried to set it up..14:56
kirillkapaul__: You talk about isolated system, but I forgot how you call this14:58
paul__repo.or.cz code runs in a chroot environment14:58
paul__and was a pain to get setup14:58
paul__took myself + a friend a fair amount of fiddling to get working14:58
kirillka:( I don't understand15:00
kirillkagitorious run on RoR15:00
kirillka:( I haven't RoR15:00
kirillka:(15:06
paul__splitty today18:09
paul__nuclear_eclipse: `mo19:36
nuclear_eclipsehi paul__20:35
paul__lo20:36
paul__2 more days20:41
paul__:)20:41
paul__nuclear_eclipse: did we ever revert the html api changes pulling out stringdisplay?20:54
nuclear_eclipseno20:56
paul__let me do that then20:57
paul__nuclear_eclipse: still there?21:25
nuclear_eclipseyo21:28
paul__can you look at ldap_Escape_string?21:29
nuclear_eclipsewhat about it?21:31
nuclear_eclipseother than inefficient?21:31
paul__function ldap_escape_string( $p_string ) { $t_find = array( '\\', '*', '(', ')', '/', "\0" ); $t_replace = array( '\5c', '\2a', '\28', '\29', '\2f', "\\00" );21:32
paul__$t_string = str_replace( $t_find, $t_replace, $t_string );21:32
paul__return $t_string;21:32
paul__}21:32
nuclear_eclipseconsidering I know nothing about how ldap works or escapes things, I guess? :P21:33
paul__well,zend do:21:33
paul__        for ($si = 0; $si < $len; $si++) {21:33
paul__            $ch = $str[$si];21:33
paul__            $ord = ord($ch);21:33
paul__            if ($ord < 0x20 || $ord > 0x7e || strstr('*()\/', $ch)) {21:33
paul__                $ch = '\\' . dechex($ord);21:33
paul__            }21:34
paul__            $ret .= $ch;21:34
paul__$t_find = array( '\\', '*', '(', ')', '/', "\x00" );21:40
paul__$t_replace = array( '\5c', '\2a', '\28', '\29', '\2f', "\\00" );21:40
paul__$t_string = str_replace( $t_find, $t_replace, $t_string );21:41
paul__think that21:41
nuclear_eclipseworksforme? :P21:43
paul__$t_find = array( '\\', '*', '(', ')', '/', "\x00" );21:51
paul__$t_replace = array( '\5c', '\2a', '\28', '\29', '\2f', '\00' );21:51
paul__or that even21:51
paul__"\\00" can be '\00'21:51
paul__nuclear_eclipse: did we ever make core formatting an enforced plugin?22:15
dhx_mpaul__: it's not so easy... we can't just remove string_display_line/htmlentities from being used to output PHP variables22:32
paul__i've put string display back in html api22:34
paul__and customised how error api uses html api22:34
dhx_mpaul__: and string_display_line needs to have some sort of logic in it to do it's own escaping of special HTML characters22:34
paul__that's already there22:35
paul__?22:35
dhx_mall I'm saying is that we can't just separate output sanitisation from pretty formatting of text22:35
dhx_mas we need to allow some HTML characters through from the pretty formatting stage22:36
dhx_malso string_display_* is the wrong one to use within html_api22:36
dhx_mbecause we don't want to pretty format any text there... we only want to sanitise it22:36
dhx_mwhat John and myself discussed the other day was reserving string_display and string_display_line for times when we want to pretty format text22:37
paul__mm22:37
dhx_mand for everything else, use some sort of html_sanitise_... function22:37
paul__I dont think we can just call htmlentities or whatever22:37
paul__so string_display is 'safer'22:37
paul__we might need a string_sanitise type function as you say ;p22:37
dhx_mit doesn't make any sense, we never want to apply special formatting to things like the page title22:38
dhx_mand more to the point, we should really be escaping all variables for HTML output (when that is the mode in use) even when MantisCoreFormatting is not activated22:39
paul__dhx_m: well22:45
paul__hmm22:45
paul__atm, i've modified html/error api to use string display as that's one discussion we had :P22:45
paul__then there was a 2nd discussion22:45
dhx_mbut it's wrong to do that :p22:45
paul__I think we might need more then just html entities22:45
dhx_mwe should be using a sanitisation function rather than a formatting function22:45
dhx_mif it's a multi-line text field then yes... otherwise, not really22:46
* paul__ sighs22:52
paul__how do i drop that commit now ;/22:52
dhx_mhave you made other commits since?22:52
paul__ofc!22:53
paul__I'm going to keep the error api change part though22:53
dhx_musing string_display?22:54
paul__breaking html_page_top down into a sensible set of things to actually run22:54
paul__or more, removing some stuff22:54
dhx_myeah that's good22:54
paul__for example22:54
dhx_mless coupling for error_api the better22:54
paul__I dont think we need project selector on error page22:54
dhx_mnope22:55
paul__anyway how do I pull this commit?22:55
dhx_mI think you may have to revert it22:55
dhx_mwith git revert {commitid}22:55
paul__I tried to cherry pick it22:55
dhx_mcherry-pick merges a single commit22:55
paul__oh22:56
paul__hmm22:56
dhx_mif you want to go backwards from your last commit22:56
paul__brb22:56
paul__need to pick up father22:56
dhx_muse git reset --hard {commitid}22:56
dhx_mand it'll remove all changes/commits more recent in your branch than {commitid}22:56
dhx_myou could make a new branch, merge master into it22:56
paul__can i erase the revert history22:57
dhx_mhmm22:57
dhx_mactually22:58
dhx_mmaybe you can rebase your branch22:58
dhx_mmove the revert commit to the top22:58
dhx_mand move the html_api commit to 2nd place22:59
dhx_mthen squash both of them down into the last commit?22:59
dhx_mhttp://stackoverflow.com/questions/495345/git-removing-selected-commits-from-repository22:59
paul__mm23:17
paul__right done something23:19
paul__dhx_m: you still there?23:49
dhx_mpaul__: yep23:49
paul__nm23:52

Generated by irclog2html.py