You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by bl...@apache.org on 2001/06/19 18:05:07 UTC
cvs commit: xml-cocoon2/src/org/apache/cocoon/components/language/generator ProgramGeneratorImpl.java
bloritsch 01/06/19 09:05:07
Modified: src/org/apache/cocoon/components/language/generator Tag:
cocoon_20_branch ProgramGeneratorImpl.java
Log:
Security update: compare classes by Class instances, not Names.
Revision Changes Path
No revision
No revision
1.5.2.3 +3 -2 xml-cocoon2/src/org/apache/cocoon/components/language/generator/ProgramGeneratorImpl.java
Index: ProgramGeneratorImpl.java
===================================================================
RCS file: /home/cvs/xml-cocoon2/src/org/apache/cocoon/components/language/generator/ProgramGeneratorImpl.java,v
retrieving revision 1.5.2.2
retrieving revision 1.5.2.3
diff -u -r1.5.2.2 -r1.5.2.3
--- ProgramGeneratorImpl.java 2001/06/08 15:38:29 1.5.2.2
+++ ProgramGeneratorImpl.java 2001/06/19 16:05:04 1.5.2.3
@@ -48,7 +48,7 @@
/**
* The default implementation of <code>ProgramGenerator</code>
* @author <a href="mailto:ricardo@apache.org">Ricardo Rocha</a>
- * @version CVS $Revision: 1.5.2.2 $ $Date: 2001/06/08 15:38:29 $
+ * @version CVS $Revision: 1.5.2.3 $ $Date: 2001/06/19 16:05:04 $
*/
public class ProgramGeneratorImpl extends AbstractLoggable
implements ProgramGenerator, Contextualizable, Composable, Configurable, ThreadSafe, Disposable {
@@ -251,7 +251,8 @@
// Store generated program in cache
this.cache.addGenerator(newManager, normalizedName, program);
- if (markupLanguage.getClass().getName().equals(SitemapMarkupLanguage.class.getName())) {
+ // FIXME: Do we want this functionality? All analysis says no.
+ if (markupLanguage.getClass().equals(SitemapMarkupLanguage.class)) {
try {
select("sitemap");
} catch (Exception e) {
----------------------------------------------------------------------
In case of troubles, e-mail: webmaster@xml.apache.org
To unsubscribe, e-mail: cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org