[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Librefm-commits] [1416] This fix will have to be pushed upstream.
From: |
Toby Inkster |
Subject: |
[Librefm-commits] [1416] This fix will have to be pushed upstream. |
Date: |
Fri, 08 May 2009 16:07:09 +0000 |
Revision: 1416
http://svn.sv.gnu.org/viewvc/?view=rev&root=librefm&revision=1416
Author: tobyink
Date: 2009-05-08 16:07:09 +0000 (Fri, 08 May 2009)
Log Message:
-----------
This fix will have to be pushed upstream.
Modified Paths:
--------------
trunk/nixtape/utils/arc/extractors/ARC2_RdfaExtractor.php
Modified: trunk/nixtape/utils/arc/extractors/ARC2_RdfaExtractor.php
===================================================================
--- trunk/nixtape/utils/arc/extractors/ARC2_RdfaExtractor.php 2009-05-08
15:41:07 UTC (rev 1415)
+++ trunk/nixtape/utils/arc/extractors/ARC2_RdfaExtractor.php 2009-05-08
16:07:09 UTC (rev 1416)
@@ -321,6 +321,7 @@
/* */
function xURI($v, $base, $ns, $attr_type = '') {
+
if ((list($sub_r, $sub_v) = $this->xBlankCURIE($v, $base, $ns)) && $sub_r)
{
return array($sub_r, $sub_v);
}
@@ -330,8 +331,8 @@
if ((list($sub_r, $sub_v) = $this->xCURIE($v, $base, $ns)) && $sub_r) {
return array($sub_r, $sub_v);
}
- if (preg_match('/^(rel|rev)$/', $attr_type) &&
preg_match('/^\s*(alternate|appendix|bookmark|cite|chapter|contents|copyright|glossary|help|icon|index|last|license|meta|next|p3pv1|prev|role|section|stylesheet|subsection|start|up)(\s|$)/s',
$v, $m)) {
- return array('http://www.w3.org/1999/xhtml/vocab#' . $m[1],
preg_replace('/^\s*' . $m[1]. '/s', '', $v));
+ if (preg_match('/^(rel|rev)$/', $attr_type) &&
preg_match('/^\s*(alternate|appendix|bookmark|cite|chapter|contents|copyright|glossary|help|icon|index|last|license|meta|next|p3pv1|prev|role|section|stylesheet|subsection|start|up)(\s|$)/is',
$v, $m)) {
+ return array('http://www.w3.org/1999/xhtml/vocab#' . substr($m[1],
preg_replace('/^\s*' . strtolower($m[1]). '/s', '', $v)));
}
if (preg_match('/^(rel|rev)$/', $attr_type) &&
preg_match('/^[a-z0-9\.]+$/i', $v)) {
return array(0, $v);
@@ -361,7 +362,7 @@
}
function xCURIE($v, $base, $ns) {
- if ($sub_r = $this->x('([a-z0-9\-\_]*)\:([a-z0-9\-\_]+)', $v)) {
+ if ($sub_r = $this->x('([a-z0-9\-\_]*)\:(.+)', $v)) {
if (!$sub_r[1]) return array('http://www.w3.org/1999/xhtml/vocab#' .
$sub_r[2], '');
if (isset($ns[$sub_r[1]])) {
return array($ns[$sub_r[1]] . $sub_r[2], '');
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Librefm-commits] [1416] This fix will have to be pushed upstream.,
Toby Inkster <=