@@ 7828-7852 (lines=25) @@ | ||
7825 | $hashes = array_values(array_unique($hashes)); |
|
7826 | } |
|
7827 | } |
|
7828 | elseif (isset($group['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['hash'])) |
|
7829 | { |
|
7830 | foreach ($group['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['hash'] as $hash) |
|
7831 | { |
|
7832 | $value = null; |
|
7833 | $algo = null; |
|
7834 | if (isset($hash['data'])) |
|
7835 | { |
|
7836 | $value = $this->sanitize($hash['data'], SIMPLEPIE_CONSTRUCT_TEXT); |
|
7837 | } |
|
7838 | if (isset($hash['attribs']['']['algo'])) |
|
7839 | { |
|
7840 | $algo = $this->sanitize($hash['attribs']['']['algo'], SIMPLEPIE_CONSTRUCT_TEXT); |
|
7841 | } |
|
7842 | else |
|
7843 | { |
|
7844 | $algo = 'md5'; |
|
7845 | } |
|
7846 | $hashes[] = $algo.':'.$value; |
|
7847 | } |
|
7848 | if (is_array($hashes)) |
|
7849 | { |
|
7850 | $hashes = array_values(array_unique($hashes)); |
|
7851 | } |
|
7852 | } |
|
7853 | else |
|
7854 | { |
|
7855 | $hashes = $hashes_parent; |
|
@@ 8305-8333 (lines=29) @@ | ||
8302 | $description = $description_parent; |
|
8303 | } |
|
8304 | // HASHES |
|
8305 | if (isset($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['hash'])) |
|
8306 | { |
|
8307 | foreach ($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['hash'] as $hash) |
|
8308 | { |
|
8309 | $value = null; |
|
8310 | $algo = null; |
|
8311 | if (isset($hash['data'])) |
|
8312 | { |
|
8313 | $value = $this->sanitize($hash['data'], SIMPLEPIE_CONSTRUCT_TEXT); |
|
8314 | } |
|
8315 | if (isset($hash['attribs']['']['algo'])) |
|
8316 | { |
|
8317 | $algo = $this->sanitize($hash['attribs']['']['algo'], SIMPLEPIE_CONSTRUCT_TEXT); |
|
8318 | } |
|
8319 | else |
|
8320 | { |
|
8321 | $algo = 'md5'; |
|
8322 | } |
|
8323 | $hashes[] = $algo.':'.$value; |
|
8324 | } |
|
8325 | if (is_array($hashes)) |
|
8326 | { |
|
8327 | $hashes = array_values(array_unique($hashes)); |
|
8328 | } |
|
8329 | } |
|
8330 | else |
|
8331 | { |
|
8332 | $hashes = $hashes_parent; |
|
8333 | } |
|
8334 | // KEYWORDS |
|
8335 | if (isset($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['keywords'])) |
|
8336 | { |