From: Julian F. <ju...@be...> - 2003-01-11 01:10:01
|
Thanks for tracking this down Andre. I never tested this with a buglink to a bug that doesn't exist. I've committed a quick fix and I'm working on a better implementation as we speak. Julian Andre Eisenbach wrote: > Ok, I found the problem... > > Looks like the recent changes to string_process_bug_link() broke > something pretty bad. When a bug link (#1234) exists in the bug > information fields, the error occurs. > > I've fixed the problem by using changing the function to be like below. > Victor and Julian need to look at the changes they made. It seems like > adding the title argument to the A tag broke something. > > Cheers, > Andre > > function string_process_bug_link( $p_string, $p_include_anchor=true ) { > $t_tag = config_get( 'bug_link_tag' ); > $t_path = config_get( 'path' ); > > if ( ON == current_user_get_pref( 'advanced_view' ) ) { > $t_page_name = 'bug_view_advanced_page.php'; > } else { > $t_page_name = 'bug_view_page.php'; > } > > if ( $p_include_anchor ) { > $t_replace_with = <<< EOT > '\\1<a href="$t_page_name?bug_id=\\2">#\\2</a>' > EOT; > $t_modifier = 'e'; > } else { > $t_replace_with = $t_path . $t_page_name . '?bug_id=\\2'; > $t_modifier = ''; > } > > return preg_replace('/(\W|^)' . $t_tag . '([0-9]+)/' . $t_modifier, > $t_replace_with, > $p_string); > } > > > Andre Eisenbach wrote: > >> I am seeing the same problem now, too. I'll let you know if I find more. >> Just thought I'd let you know you're not alone :) >> >> Cheers, >> Andre >> >> Michael Kunze wrote: >> >>> good morning, >>> >>> i need some help to find a bug. i already did some research on it. >>> but due to the large amounts of scripts it is hard to get closer to >>> the solution. maybe one of you (with more insight in the project) can >>> help me. >>> here the detailed description: >>> http://sourceforge.net/forum/forum.php?thread_id=791293&forum_id=47436 >>> thank you for your time. >> >> >> >> >> >> >> >> ------------------------------------------------------- >> This SF.NET email is sponsored by: >> SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! >> http://www.vasoftware.com >> _______________________________________________ >> Mantisbt-dev mailing list >> Man...@li... >> https://lists.sourceforge.net/lists/listinfo/mantisbt-dev >> >> >> > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Mantisbt-dev mailing list > Man...@li... > https://lists.sourceforge.net/lists/listinfo/mantisbt-dev -- ju...@be... Beta4 Productions (http://www.beta4.com) |