[ 
https://jira.nuxeo.org/browse/NXP-5067?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Stéfane Fermigier updated NXP-5067:
-----------------------------------

    Component/s: Blogs / Websites / Wikis

> SitesWikiListener does not respect image markup correctly
> ---------------------------------------------------------
>
>                 Key: NXP-5067
>                 URL: https://jira.nuxeo.org/browse/NXP-5067
>             Project: Nuxeo Enterprise Platform
>          Issue Type: Bug
>          Components: Blogs / Websites / Wikis
>    Affects Versions: 5.3.1
>            Reporter: Sean Radford
>            Priority: Major
>
> The getLinks method does not cater for image markup (it only searches for '[' 
> and ']' returning the substring between when there could also be a 'image:' 
> prefix.
> A fix could be:
> diff -r d63d5697a2c6 
> nuxeo-webengine-features/nuxeo-webengine-sites-core-contrib/src/main/java/org/nuxeo/webengine/sites/listeners/SitesWikiListener.java
> --- 
> a/nuxeo-webengine-features/nuxeo-webengine-sites-core-contrib/src/main/java/org/nuxeo/webengine/sites/listeners/SitesWikiListener.java
>     Wed Mar 17 20:37:09 2010 +0100
> +++ 
> b/nuxeo-webengine-features/nuxeo-webengine-sites-core-contrib/src/main/java/org/nuxeo/webengine/sites/listeners/SitesWikiListener.java
>     Sun May 02 22:19:19 2010 +0100
> @@ -147,6 +147,9 @@
>                  break;
>              }
>              startPosition++;
> +            if ((startPosition+6 < content.length()) && 
> (content.substring(startPosition, startPosition+6).equals("image:"))) {
> +                startPosition = startPosition+6;
> +            }
>              int endPosition = content.indexOf(closeBracket, startPosition);
>              if (endPosition < 0) {
>                  break;

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://jira.nuxeo.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets

Reply via email to