Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

check resourceUri if it is really a URI

  • Loading branch information...
commit a9112a622ee5542d8b6557d7b7a3f0b526ae3ad5 1 parent 0ac5343
@white-gecko white-gecko authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 application/classes/OntoWiki/Model/TitleHelper.php
View
4 application/classes/OntoWiki/Model/TitleHelper.php
@@ -296,6 +296,10 @@ public function getResources()
*/
public function getTitle($resourceUri, $language = null)
{
+ if (!Erfurt_Uri::check($resourceUri)) {
+ return $resourceUri;
+ }
+
if (!$this->_cache($resourceUri, (string)$this->_model)) {
// * means any language
if (trim($language) == '*') {
Please sign in to comment.
Something went wrong with that request. Please try again.