Skip to content
This repository
Browse code

check resourceUri if it is really a URI

  • Loading branch information...
commit a9112a622ee5542d8b6557d7b7a3f0b526ae3ad5 1 parent 0ac5343
Natanael Arndt authored October 26, 2012
4  application/classes/OntoWiki/Model/TitleHelper.php
@@ -296,6 +296,10 @@ public function getResources()
296 296
      */
297 297
     public function getTitle($resourceUri, $language = null)
298 298
     {
  299
+        if (!Erfurt_Uri::check($resourceUri)) {
  300
+            return $resourceUri;
  301
+        }
  302
+
299 303
         if (!$this->_cache($resourceUri, (string)$this->_model)) {
300 304
             // * means any language
301 305
             if (trim($language) == '*') {

Git Notes

jenkins

{
  "built_on": "master",
  "duration": 57.069,
  "full_display_name": "OntoWiki #61",
  "id": "2012-10-26_01-59-48",
  "number": 61,
  "result": "SUCCESS",
  "status_message": "?",
  "time": "2012-10-26 01:59:48 +0200",
  "url": "job/OntoWiki/61/"
}

0 notes on commit a9112a6

Please sign in to comment.
Something went wrong with that request. Please try again.