Skip to content
Browse files

Fix the Bug#4237 [ https://sourceforge.net/p/phpmyadmin/bugs/4237/ ]

  • Loading branch information...
1 parent 27143a7 commit 70a95294b93905272246616461df9abeae1ff768 @dhananjay92 committed Feb 1, 2014
Showing with 9 additions and 1 deletion.
  1. +9 −1 libraries/Util.class.php
View
10 libraries/Util.class.php
@@ -467,7 +467,15 @@ public static function getMySQLDocuURL($link, $anchor = '')
$url .= '#' . $anchor;
}
- return PMA_linkURL($url);
+
+ $url=PMA_linkURL($url);
+ //strip off unnecessary details like token and all. Here I'm keeping only url field, rest are discarded.
+ $arr=parse_url($url);
+ parse_str($arr["query"],$vars);
+ $query = http_build_query(array("url"=>$vars["url"]));
+ $url='./url.php?' . $query;
+
+ return $url;
}
/**

0 comments on commit 70a9529

Please sign in to comment.
Something went wrong with that request. Please try again.