Skip to content
Browse files

check resourceUri if it is really a URI

  • Loading branch information...
1 parent 0ac5343 commit a9112a622ee5542d8b6557d7b7a3f0b526ae3ad5 @white-gecko white-gecko committed Oct 26, 2012
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) == '*') {

0 comments on commit a9112a6

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