Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 873345
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T10:55:10+00:00 2026-05-15T10:55:10+00:00

I am building the site and planning on implementing OpenID. I can get an

  • 0

I am building the site and planning on implementing OpenID. I can get an OpenID URL back from Google, but Doctrine appears to do funny things with URLs in the where clause of my query. How can I fix that?

Here is the function

/* This function queries docrtrine for a user OpenID URL
 * and returns the user object.
 */
function getUserByUserOpenIDURL ($userOpenIDURL) {
  $q = Doctrine_Query::create()
     ->select('*')
     ->from('jsgUserOpenID as u')
     ->where('openid_url = ' . $userOpenIDURL);

  return $q->fetchOne();
}

Here is the error from the page

Fatal error: Uncaught exception ‘Doctrine_Exception’ with message ‘Couldn’t find class www’ in /Library/WebServer/Documents/ResearchPM/lib/Doctrine/Table.php:299 Stack trace: #0 /Library/WebServer/Documents/ResearchPM/lib/Doctrine/Table.php(256): Doctrine_Table->initDefinition() #1 /Library/WebServer/Documents/ResearchPM/lib/Doctrine/Connection.php(1126): Doctrine_Table->__construct(‘www’, Object(Doctrine_Connection_Mysql), true) #2 /Library/WebServer/Documents/ResearchPM/lib/Doctrine/Query.php(1934): Doctrine_Connection->getTable(‘www’) #3 /Library/WebServer/Documents/ResearchPM/lib/Doctrine/Query.php(1732): Doctrine_Query->loadRoot(‘www’, ‘www’) #4 /Library/WebServer/Documents/ResearchPM/lib/Doctrine/Query.php(713): Doctrine_Query->load(‘www.google’) #5 /Library/WebServer/Documents/ResearchPM/lib/Doctrine/Query/Where.php(121): Doctrine_Query->parseClause(‘https://www.goo…’) #6 /Library/WebServer/Documents/ResearchPM/lib/Doctrine/Query/Where.php(81): Doctrine_Query_Where->_buildSql(‘openid_url’, ‘=’, ‘https://www.goo.. in /Library/WebServer/Documents/ResearchPM/lib/Doctrine/Table.php on line 299

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T10:55:11+00:00Added an answer on May 15, 2026 at 10:55 am

    Youre not escaping variables appropiately.
    There is two methods, by named or positional wildcards:

    $q = Doctrine_Query::create()
           ->select('*')
           ->from('jsgUserOpenID as u')
           ->where('openid_url = ?', $userOpenIDURL);
    

    Or

    $q = Doctrine_Query::create() 
           ->select('*') 
           ->from('jsgUserOpenID as u') 
           ->where('openid_url = :url', array("url" => $userOpenIDURL));
    

    This properly escapes the variables you’re inserting, and makes your app secure against sql-injection

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Building a site on CargoCollective, but it appears they use jQuery 1.4.2 which seems
I'm building a site where registered users can upload files. Those files are then
building a site which has content for each section. urls range from; /work/ /work/print/
I'm building a flash site (as3) with large videos that act as transitions from
I'm planning on building a new multilingual site and am thinking about its impact
I'm planning a site which needs the users' trust. To help trust building, I
I'm building a site that uses tweets from Twitters public timeline. http://twitter.com/statuses/public_timeline.xml I don't
I am currently building a site that utilises the Google Maps V3 API. It
I'm planning on building an ASP.NET web site, which will be on a shared
I am building a site where candidates can post their resume and employers can

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.