cannot concatenate 'str' and 'list' objects

Νικόλαος Κούρας nikos.gr33k at gmail.com
Sat Sep 15 10:44:35 EDT 2012


Τη Σάββατο, 15 Σεπτεμβρίου 2012 5:21:22 μ.μ. UTC+3, ο χρήστης Roy Smith έγραψε:
> In article <mailman.750.1347717221.27098.python-list at python.org>,
> 
> 
> 
> > i see you try to extract only the 1st element of the list, i tried that too 
> 
> > but it gives me now this weird message:
> 
> > 
> 
> > if you visit my website http://superhost.gr
> 
> 
> 
> Do you realize that the hosting service you're using (HostGator) is so 
> 
> mis-configured that it is exposing your source code and credentials to 
> 
> the entire world?
> 
> 
> 
> When I go to that URL, I get a page which includes the name of the CGI 
> 
> script you are running (/home/nikos/public_html/cgi-bin/counter.py).  I 
> 
> can then do a GET on http://superhost.gr/~nikos/cgi-bin/counter.py, and 
> 
> can see your script source code, including the credentials to attach to 
> 
> your database:
> 
> 
> 
> conn = MySQLdb.connect( db = 'nikos_tech', host = 'localhost', user = 
> 
> 'nikos_nikos', passwd = <elided>)
> 
> 
> 
> How to properly configure a web server is way beyond the scope of this 
> 
> mailing list, but you really need to do some research there to safeguard 
> 
> your own data.

I cant beleive that my source code can be seen form ANYONE this easily!!!!

I moved to HostGaot because i heard there were the best in the hosting business.....



More information about the Python-list mailing list