We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 24530
    • 100 Posts
    It seems, that there is no validation for special chars ... is it possible to add this feature?

    used:
    - ditto 2.0.1
    - MODx 0.9.6 RC1
    - [[Ditto? &startID=`1` &format=`atom` &abbrLanguage=`DE` &summarize=`20` &depth=`5` &sortBy=`editedon` &total=`20`]]
      my newest webpage [url=http://gitarren.zucali.at]Meisterwerkstatt f
      • 18397
      • 3,250 Posts
      Please file a bug report for this and I’ll take care of it in the morning (its 3am at the moment...)
        • 24530
        • 100 Posts
        sorry ;-) in Austria time goes different ...

        I will do the report ...

        [EDIT] I did it. Hopefully correct and in the right place ... http://modxcms.com/bugs/task/822
          my newest webpage [url=http://gitarren.zucali.at]Meisterwerkstatt f
          • 18397
          • 3,250 Posts
          The Ditto bugtracker please... http://www.modxcms.com/ditto_bugtracker.html
            • 24530
            • 100 Posts
            thanks - I knew something was wrong, but I was just too silly to see the point ...
              my newest webpage [url=http://gitarren.zucali.at]Meisterwerkstatt f
              • 18397
              • 3,250 Posts
              Please copy and paste the output here.
                • 24530
                • 100 Posts
                the output:

                Fehler!
                XML-Interpretation fehlgeschlagen

                XML-Interpretation fehlgeschlagen: Syntaxfehler (Zeile: 12, Zeichen: 21)

                Opera Version 9.10 German, Plattform MacOS X 10.4.9 (Firefox shown so results at all)
                Fehler:invalid entity reference
                Spezifikation:http://www.w3.org/TR/REC-xml/#NT-EntityRef
                
                  9: 	<updated>2007-03-21T10:32:37Z</updated>
                 10: 	<generator>Ditto 2.0 running on MODx</generator>
                 11: 	<entry>
                 12: 		<title>here is the & mistake</title>
                 13: 		<link rel="alternate" type="text/html" href="http://temp.paarplatz.com/start/leben/job.html" />
                 14: 		<author><name>paarplatz.com</name></author>
                 15: 		<id>http://temp.paarplatz.com/start/leben/job.html</id>


                The "live" feed is temporarily available at http://temp.paarplatz.com/atom.xml
                  my newest webpage [url=http://gitarren.zucali.at]Meisterwerkstatt f
                  • 18397
                  • 3,250 Posts
                  Give the development version a try (see my signerature). The last commit should fix this.
                    • 24530
                    • 100 Posts
                    Perfect! http://temp.paarplatz.com/atom.xml works with the SVN-Version!
                    (but the temporary feed will be closed soon)

                    Thank you very much!!!!!!



                    Is it hard to change? Wayfinder has the same problem (invalid HTML with "&" character in title) ... but it doesn´t destroy the whole page ...
                      my newest webpage [url=http://gitarren.zucali.at]Meisterwerkstatt f
                      • 18397
                      • 3,250 Posts
                      If it is just that character you can do:

                      $var = str_replace("&","&",$var);
                      


                      If you want all special characters encoded:

                      $value = htmlspecialchars(html_entity_decode($value));
                      


                      Note that $var and $value represent the variable that needs to be changed, not the actual variable in Wayfinder.