friendica/friendica — pull request #447 by fermionic (2012-08-26 21:02:14+00:00)
Title: regular expressions were grabbing too much

If someone posted a status with both hashtags and photos, then the `item_redir_and_replace_images` function would match the beginning of the hashtag url and end at the closing image url. This broke the redir link. In the `localize_item` function, the same thing would occur, and since there are '?' characters in the hashtag urls, the `zrl()` function would return a zrl starting with '&', resulting in an erroneous URL. I believe these two problems are fixed with this pull.