Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 199807

[PHP3] RGEXP with MySQL From: Andre Anneck (anneck <email protected>)
Date: 07/01/98

Hi there again...

while trying out some query´s with mysql upon a database, i discoverd
that one can just do a select like

select * from fooTable where foo REGEXP '$search'

and search could be a posted variable from an html form.
and voilá... you would have a powerfull search engine... but...

what exactly could be the worst consequences when someone with
supirior knowledge about regex´s types in a searchstring that really
would take the mysql-server down to his knees?

and then ofcourse... what can i do to prohibit those exploits and
still offer the REGEXP within in select?

Take care,

A.Anneck
Web-Wizard @ TSE Teleservice GmbH
--------------------------------------
"Gravity can not be made responsible
 for people falling in love"
- Albert Einstein.

--
PHP 3 Mailing List   http://www.php.net/
To unsubscribe send an empty message to php3-unsubscribe <email protected>
To subscribe to the digest list:  php3-digest-subscribe <email protected>
For help: php3-help <email protected>  Archive: http://www.tryc.on.ca/php3.html