Skip to content
Snippets Groups Projects
Commit 48665d38 authored by Andreas Gohr's avatar Andreas Gohr
Browse files

fix for external images and the media rewrite patch

darcs-hash:20050814124731-7ad00-9ec2fa2e3a188e3d0b06fc3f15135a05dc99d3dd.gz
parent 26a0801f
No related branches found
No related tags found
No related merge requests found
......@@ -285,9 +285,9 @@ function ml($id='',$more='',$direct=true){
$xlink .= 'lib/exe/fetch.php';
if($more){
$xlink .= '?'.$more;
$xlink .= '&media='.$id;
$xlink .= '&media='.urlencode($id);
}else{
$xlink .= '?media='.$id;
$xlink .= '?media='.urlencode($id);
}
return $xlink;
}
......
......@@ -13,14 +13,18 @@
* Uses either standard $_REQUEST variable or extracts it from
* the full request URI when userewrite is set to 2
*
* Returns $conf['start'] if no id was found and $param is 'id'
* For $param='id' $conf['start'] is returned if no id was found
* and the returned ID will be cleaned. For other params the
* cleaning has to be done outside this function
*
* @author Andreas Gohr <andi@splitbrain.org>
*/
function getID($param='id'){
global $conf;
$id = cleanID($_REQUEST[$param]);
$id = $_REQUEST[$param];
if($param == 'id') $id = cleanID($id);
//construct page id from request URI
if(empty($id) && $conf['userewrite'] == 2){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment