backport from trunk (rev #4908, #4938):
- fixed bug in decrementing the max_forward value: The issue occurs when calling 'mf_process_maxfwd_header' or 'is_maxfwd_lt' script functions more than once within a single script execution The second occurrence always returns as if the max forward header value has reached zero due to an issue with the temporary value (max forwards count) stored by the module being overwritten with zero during an int to string conversion
- fixed internal link corruption when 'mf_process_maxfwd_header' is used more than once in the script.
Closes bug 2223501.
Peter Baer (pbaer at galaxytelecom dot net)
Tavis Paquette (tavis at galaxytelecom dot net)