Author: lslezak Date: Tue May 22 14:07:19 2007 New Revision: 38081 URL: http://svn.opensuse.org/viewcvs/yast?rev=38081&view=rev Log: - escape XML entities in URL when writing the config file (fixed saving of ISO file URL) Modified: branches/tmp/lslezak/cd-creator/package/yast2-product-creator.changes branches/tmp/lslezak/cd-creator/src/ProductCreator.ycp Modified: branches/tmp/lslezak/cd-creator/package/yast2-product-creator.changes URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/lslezak/cd-creator/package/yast2-product-creator.changes?rev=38081&r1=38080&r2=38081&view=diff ============================================================================== --- branches/tmp/lslezak/cd-creator/package/yast2-product-creator.changes (original) +++ branches/tmp/lslezak/cd-creator/package/yast2-product-creator.changes Tue May 22 14:07:19 2007 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Tue May 22 14:05:39 CEST 2007 - lslezak@suse.cz + +- escape XML entities in URL when writing the config file + (fixed saving of ISO file URL) + +------------------------------------------------------------------- Mon May 21 16:58:32 CEST 2007 - lslezak@suse.cz - fixed the default boot item in isolinux.cfg for AutoYast Modified: branches/tmp/lslezak/cd-creator/src/ProductCreator.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/lslezak/cd-creator/src/ProductCreator.ycp?rev=38081&r1=38080&r2=38081&view=diff ============================================================================== --- branches/tmp/lslezak/cd-creator/src/ProductCreator.ycp (original) +++ branches/tmp/lslezak/cd-creator/src/ProductCreator.ycp Tue May 22 14:07:19 2007 @@ -377,6 +377,24 @@ global define list PrepareConfigs() ``{ list c = maplist(string k, map v, Configs, ``{ + + list<string> sources = v["sources"]:[]; + + // escape XML entities in URL + // (e.g. iso:///?iso=image.iso&url=file:///local/images/ cannot be stored by the XML agent) + if (size(sources) > 0) + { + sources = maplist(string src, sources, + { + return String::EscapeTags(src); + } + ); + + y2internal("Escaped sources: %1", sources); + + v["sources"] = sources; + } + return(v); }); return (c); -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org