[librdf-rdfa-generator-perl] 13/64: release 0.04: validation and security improvements.
Jonas Smedegaard
dr at jones.dk
Sat Dec 23 12:22:50 UTC 2017
This is an automated email from the git hooks/post-receive script.
js pushed a commit to annotated tag debian/0.106-1
in repository librdf-rdfa-generator-perl.
commit 4dfcda5305966351f8ee67429845cfac6ecd0863
Author: Toby Inkster <mail at tobyinkster.co.uk>
Date: Fri May 21 09:38:15 2010 +0000
release 0.04: validation and security improvements.
--HG--
branch : RDF-RDFa-Generator
extra : convert_revision : svn%3A3fe8e991-6959-4966-b76d-b07eca2b6e37/RDF-RDFa-Generator%40364
---
Changes | 12 +++++++++++-
Changes.ttl | 17 +++++++++++++++--
Changes.xml | 23 +++++++++++++++++++++++
META.yml | 4 ++--
RDF-RDFa-Generator-0.04.tar.gz | Bin 0 -> 35182 bytes
lib/RDF/RDFa/Generator.pm | 2 +-
lib/RDF/RDFa/Generator/HTML/Head.pm | 2 +-
lib/RDF/RDFa/Generator/HTML/Hidden.pm | 6 +++---
lib/RDF/RDFa/Generator/HTML/Pretty.pm | 13 +++++++++++--
lib/RDF/RDFa/Generator/HTML/Pretty/Note.pm | 2 +-
10 files changed, 68 insertions(+), 13 deletions(-)
diff --git a/Changes b/Changes
index 0e6f7d1..ef3af01 100644
--- a/Changes
+++ b/Changes
@@ -10,10 +10,20 @@ Home page: <http://search.cpan.org/dist/RDF-RDFa-Generator/>
Bug tracker: <http://rt.cpan.org/Dist/Display.html?Queue=RDF-RDFa-Generator>
Maintainer: Toby Inkster <mailto:tobyink at cpan.org>
+0.04 [2010-05-21]
+ - HTML::Pretty no longer makes 'javascript:' URLs into links.
+ - HTML::Hidden and HTML::Pretty now use @about instead of @src to set the
+ subject URI.
+
+0.03 [2010-05-19]
+ - (Addition) HTML::Pretty can now force safe HTML (prevents injection
+ attacks).
+ - (Bugfix) HTML::Pretty Fallback to sorting by object now works.
+
0.02 [2010-05-18]
- - Using FamFamFam Silk icons.
- (Addition) HTML::Pretty can now include additional textual notes in the
output. This functionality added for RDF::RDFa::Linter.
+ - Using FamFamFam Silk icons.
0.01 [2010-05-09]
diff --git a/Changes.ttl b/Changes.ttl
index 94bd05b..372713f 100644
--- a/Changes.ttl
+++ b/Changes.ttl
@@ -52,6 +52,18 @@ my:v_0-03
dcs:item [ rdfs:label "HTML::Pretty can now force safe HTML (prevents injection attacks)."@en ; a dcs:Addition ]
] .
+my:v_0-04
+
+ a :Version ;
+ dc:issued "2010-05-21"^^xsd:date ;
+ :revision "0.04"^^xsd:string ;
+ :file-release <http://backpan.cpan.org/authors/id/T/TO/TOBYINK/RDF-RDFa-Generator-0.04.tar.gz> ;
+ dcs:changeset [
+ dcs:versus my:v_0-03 ;
+ dcs:item [ rdfs:label "HTML::Hidden and HTML::Pretty now use @about instead of @src to set the subject URI."@en ] ;
+ dcs:item [ rdfs:label "HTML::Pretty no longer makes 'javascript:' URLs into links."@en ]
+ ] .
+
#############################################################
my:project
@@ -70,7 +82,7 @@ my:project
:tester toby:i ;
:created "2010-05-05"^^xsd:date ;
:license <http://dev.perl.org/licenses/> ;
- :release my:v_0-01 , my:v_0-02 , my:v_0-03 .
+ :release my:v_0-01 , my:v_0-02 , my:v_0-03 , my:v_0-04 .
#############################################################
@@ -80,6 +92,7 @@ toby:i
foaf:name "Toby Inkster" ;
foaf:homepage <http://tobyinkster.co.uk/> ;
foaf:page <http://search.cpan.org/~tobyink/> ;
- foaf:mbox <mailto:tobyink at cpan.org> .
+ foaf:mbox <mailto:tobyink at cpan.org> ;
+ <http://www.w3.org/2002/07/owl#sameAs> <http://purl.org/NET/cpan-uri/person/tobyink> .
#############################################################
diff --git a/Changes.xml b/Changes.xml
index 1ac63a3..396f275 100644
--- a/Changes.xml
+++ b/Changes.xml
@@ -61,6 +61,26 @@
<file-release rdf:resource="http://backpan.cpan.org/authors/id/T/TO/TOBYINK/RDF-RDFa-Generator-0.03.tar.gz"/>
<revision rdf:datatype="http://www.w3.org/2001/XMLSchema#string">0.03</revision>
</Version>
+ <Version rdf:about="http://purl.org/NET/cpan-uri/dist/RDF-RDFa-Generator/v_0-04">
+ <dcs:changeset>
+ <rdf:Description>
+ <dcs:item>
+ <rdf:Description>
+ <rdfs:label xml:lang="en">HTML::Hidden and HTML::Pretty now use @about instead of @src to set the subject URI.</rdfs:label>
+ </rdf:Description>
+ </dcs:item>
+ <dcs:item>
+ <rdf:Description>
+ <rdfs:label xml:lang="en">HTML::Pretty no longer makes 'javascript:' URLs into links.</rdfs:label>
+ </rdf:Description>
+ </dcs:item>
+ <dcs:versus rdf:resource="http://purl.org/NET/cpan-uri/dist/RDF-RDFa-Generator/v_0-03"/>
+ </rdf:Description>
+ </dcs:changeset>
+ <dc:issued rdf:datatype="http://www.w3.org/2001/XMLSchema#date">2010-05-21</dc:issued>
+ <file-release rdf:resource="http://backpan.cpan.org/authors/id/T/TO/TOBYINK/RDF-RDFa-Generator-0.04.tar.gz"/>
+ <revision rdf:datatype="http://www.w3.org/2001/XMLSchema#string">0.04</revision>
+ </Version>
<Project rdf:about="http://purl.org/NET/cpan-uri/dist/RDF-RDFa-Generator/project">
<bug-database rdf:resource="http://rt.cpan.org/Dist/Display.html?Queue=RDF-RDFa-Generator"/>
<created rdf:datatype="http://www.w3.org/2001/XMLSchema#date">2010-05-05</created>
@@ -74,6 +94,8 @@
<programming-language>Perl</programming-language>
<release rdf:resource="http://purl.org/NET/cpan-uri/dist/RDF-RDFa-Generator/v_0-01"/>
<release rdf:resource="http://purl.org/NET/cpan-uri/dist/RDF-RDFa-Generator/v_0-02"/>
+ <release rdf:resource="http://purl.org/NET/cpan-uri/dist/RDF-RDFa-Generator/v_0-03"/>
+ <release rdf:resource="http://purl.org/NET/cpan-uri/dist/RDF-RDFa-Generator/v_0-04"/>
<repository>
<SVNRepository>
<browse rdf:resource="http://goddamn.co.uk/viewvc/perlmods/RDF-RDFa-Generator/"/>
@@ -83,6 +105,7 @@
<tester rdf:resource="http://tobyinkster.co.uk/#i"/>
</Project>
<foaf:Person rdf:about="http://tobyinkster.co.uk/#i">
+ <ns1:sameAs xmlns:ns1="http://www.w3.org/2002/07/owl#" rdf:resource="http://purl.org/NET/cpan-uri/person/tobyink"/>
<foaf:homepage rdf:resource="http://tobyinkster.co.uk/"/>
<foaf:mbox rdf:resource="mailto:tobyink at cpan.org"/>
<foaf:name>Toby Inkster</foaf:name>
diff --git a/META.yml b/META.yml
index b9bb047..3948049 100644
--- a/META.yml
+++ b/META.yml
@@ -8,7 +8,7 @@ build_requires:
configure_requires:
ExtUtils::MakeMaker: 6.42
distribution_type: module
-generated_by: 'Module::Install version 0.95'
+generated_by: 'Module::Install version 0.91'
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -29,4 +29,4 @@ resources:
homepage: http://search.cpan.org/dist/RDF-RDFa-Generator/
license: http://dev.perl.org/licenses/
repository: http://goddamn.co.uk/viewvc/perlmods/RDF-RDFa-Generator/
-version: 0.03
+version: 0.04
diff --git a/RDF-RDFa-Generator-0.04.tar.gz b/RDF-RDFa-Generator-0.04.tar.gz
new file mode 100644
index 0000000..3691d1b
Binary files /dev/null and b/RDF-RDFa-Generator-0.04.tar.gz differ
diff --git a/lib/RDF/RDFa/Generator.pm b/lib/RDF/RDFa/Generator.pm
index 60316ac..852d848 100644
--- a/lib/RDF/RDFa/Generator.pm
+++ b/lib/RDF/RDFa/Generator.pm
@@ -13,7 +13,7 @@ package RDF::RDFa::Generator;
use 5.008;
use common::sense;
-our $VERSION = '0.03';
+our $VERSION = '0.04';
use RDF::RDFa::Generator::HTML::Head;
use RDF::RDFa::Generator::HTML::Hidden;
diff --git a/lib/RDF/RDFa/Generator/HTML/Head.pm b/lib/RDF/RDFa/Generator/HTML/Head.pm
index 9e5951e..d7cd57d 100644
--- a/lib/RDF/RDFa/Generator/HTML/Head.pm
+++ b/lib/RDF/RDFa/Generator/HTML/Head.pm
@@ -5,7 +5,7 @@ use base qw'RDF::RDFa::Generator';
use common::sense;
use XML::LibXML qw':all';
-our $VERSION = '0.03';
+our $VERSION = '0.04';
sub new
{
diff --git a/lib/RDF/RDFa/Generator/HTML/Hidden.pm b/lib/RDF/RDFa/Generator/HTML/Hidden.pm
index d9e2982..7067b4a 100644
--- a/lib/RDF/RDFa/Generator/HTML/Hidden.pm
+++ b/lib/RDF/RDFa/Generator/HTML/Hidden.pm
@@ -5,7 +5,7 @@ use base qw'RDF::RDFa::Generator::HTML::Head';
use common::sense;
use XML::LibXML qw':all';
-our $VERSION = '0.03';
+our $VERSION = '0.04';
sub injection_site
{
@@ -85,9 +85,9 @@ sub _process_subject
if (defined $self->{'base'}
and $st->subject->is_resource
and $st->subject->uri eq $self->{'base'})
- { $node->setAttribute('src', ''); }
+ { $node->setAttribute('about', ''); }
elsif ($st->subject->is_resource)
- { $node->setAttribute('src', $st->subject->uri); }
+ { $node->setAttribute('about', $st->subject->uri); }
else
{ $node->setAttribute('about', '[_:'.$st->subject->blank_identifier.']'); }
diff --git a/lib/RDF/RDFa/Generator/HTML/Pretty.pm b/lib/RDF/RDFa/Generator/HTML/Pretty.pm
index 7bd3ab1..bb7aa63 100644
--- a/lib/RDF/RDFa/Generator/HTML/Pretty.pm
+++ b/lib/RDF/RDFa/Generator/HTML/Pretty.pm
@@ -8,7 +8,7 @@ use Icon::FamFamFam::Silk;
use RDF::RDFa::Generator::HTML::Pretty::Note;
use XML::LibXML qw':all';
-our $VERSION = '0.03';
+our $VERSION = '0.04';
sub create_document
{
@@ -166,7 +166,16 @@ sub _resource_statements
my $DD = $DL->addNewChild(XHTML_NS, 'dd');
- if ($st->object->is_resource)
+ if ($st->object->is_resource && $st->object->uri =~ /^javascript:/i)
+ {
+ $DD->setAttribute('rel', $self->_make_curie($st->predicate->uri, $prefixes));
+ $DD->setAttribute('class', 'resource');
+
+ my $A = $DD->addNewChild(XHTML_NS, 'span');
+ $A->setAttribute('about', $st->object->uri);
+ $A->appendTextNode($st->object->uri);
+ }
+ elsif ($st->object->is_resource)
{
$DD->setAttribute('rel', $self->_make_curie($st->predicate->uri, $prefixes));
$DD->setAttribute('class', 'resource');
diff --git a/lib/RDF/RDFa/Generator/HTML/Pretty/Note.pm b/lib/RDF/RDFa/Generator/HTML/Pretty/Note.pm
index 7242f07..f9790c3 100644
--- a/lib/RDF/RDFa/Generator/HTML/Pretty/Note.pm
+++ b/lib/RDF/RDFa/Generator/HTML/Pretty/Note.pm
@@ -11,7 +11,7 @@ use common::sense;
use constant XHTML_NS => 'http://www.w3.org/1999/xhtml';
use XML::LibXML qw':all';
-our $VERSION = '0.03';
+our $VERSION = '0.04';
=head1 DESCRIPTION
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/librdf-rdfa-generator-perl.git
More information about the Pkg-perl-cvs-commits
mailing list