id,summary,reporter,owner,description,type,status,priority,component,severity,resolution,keywords,cc,release
5903,Enhanced detection of links,anonymous,rjollos,In the current version (released on 08/19/08) are not detected correctly all types of links.\r\n\r\nE.g. following links are not currently detected:\r\n\r\n{{{\r\n[wiki:"Name of the page"]\r\nNameOfThePage\r\n}}}\r\n\r\nIt will be nice if future versions of the macro contain detection of these two additional link types. In our case we have a lot of these links and without patch macro is not so useful.\r\n\r\nFor my purpose I have modified existing source code (only for TRAC 0.11) and changed following lines.\r\n\r\nOriginal source code:\r\n\r\n{{{\r\nif thispage:\r\n      #sql += 'AND (w1.text LIKE \\'%%[wiki:%s %%\\' ' % (to_unicode(thispage_ "utf-8").encode ("utf-8"))\r\n      sql += 'AND (w1.text LIKE \\'%%[wiki:%s %%\\' ' % thispage\r\n      sql += 'OR w1.text LIKE \\'%%[wiki:%s]%%\\')' % thispage\r\n      #sql += 'OR w1.text LIKE \\'%%[wiki:%s]%%\\')' % (to_unicode (thispage_ "utf-8").encode ("utf-8"))\r\n}}}\r\n\r\nMy changes:\r\n\r\n{{{\r\n      #sql += 'AND (w1.text LIKE \\'%%[wiki:%s %%\\' ' % (to_unicode(thispage_ "utf-8").encode ("utf-8"))\r\n      sql += 'AND (w1.text LIKE \\'%%[wiki:%s %%\\' ' % thispage\r\n      sql += 'OR w1.text LIKE \\'%%[wiki:%s]%%\\'' % thispage\r\n      sql += 'OR w1.text LIKE \\'%%[wiki:"%s"]%%\\'' % thispage\r\n      sql += 'OR w1.text LIKE \\'%%%s%%\\')' % thispage\r\n      #sql += 'OR w1.text LIKE \\'%%[wiki:%s]%%\\')' % (to_unicode (thispage_ "utf-8").encode ("utf-8"))\r\n}}}\r\n\r\nWhole script is in the attachment.\r\n\r\nThanks a lot for incorporating these changes.\r\n,defect,new,normal,BackLinksMacro,normal,,,,0.11
