Ignore:
Timestamp:
May 29, 2007, 11:28:41 PM (15 years ago)
Author:
andersk
Message:
urlencode some stuff.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • locker/sql/bin/get-next-database

    r131 r326  
    55$newdb = str_replace($u.'+','',$argv[1]);
    66$testdb = str_replace('.','',$u).'+'.$newdb;
    7 $dbs = explode("\n",file_get_contents("http://sql.mit.edu/~sql/tools/list_dbs.php?h=$h&u=$u&p=$p"));
     7$dbs = explode("\n",file_get_contents('http://sql.mit.edu/~sql/tools/list_dbs.php?h=' . urlencode($h) . '&u=' . urlencode($u) . '&p=' . urlencode($p)));
    88if (in_array($testdb,$dbs)) {
    99        $i = 1;
Note: See TracChangeset for help on using the changeset viewer.