Subversion Repositories SvarDOS

Rev

Rev 911 | Rev 1508 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 911 Rev 1157
Line 106... Line 106...
106
  if (empty($_GET['p'])) {
106
  if (empty($_GET['p'])) {
107
    http_response_code(404);
107
    http_response_code(404);
108
    echo "ERROR: no package specified\r\n";
108
    echo "ERROR: no package specified\r\n";
109
    exit(0);
109
    exit(0);
110
  }
110
  }
-
 
111
  // pull and pullsrc actions accept pkg-ver strings
-
 
112
  if ($a == 'pull' || $a == 'pullsrc') {
111
  $pv = explode('-', strtolower($_GET['p']));
113
    $pv = explode('-', strtolower($_GET['p']));
112
  $p = $pv[0];
114
    $p = $pv[0];
113
  if (!empty($pv[1])) $v = $pv[1];
115
    if (!empty($pv[1])) $v = $pv[1];
-
 
116
  } else {
-
 
117
    $p = strtolower($_GET['p']);
-
 
118
  }
114
}
119
}
115
 
120
 
116
 
121
 
117
// is action valid?
122
// is action valid?
118
 
123