The branch, master has been updated
via 765d823bbda19c506567144446e1727990ac78d0 (commit)
from 2cc790bad2e9a0024ff70dca4c6e7c32c1d832f7 (commit)
- Log -----------------------------------------------------------------
commit 765d823bbda19c506567144446e1727990ac78d0
Author: Michal Čihař <[email protected]>
Date: Mon Jul 25 14:35:52 2011 +0200
Better function names
-----------------------------------------------------------------------
Summary of changes:
libraries/sanitizing.lib.php | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/libraries/sanitizing.lib.php b/libraries/sanitizing.lib.php
index 6c7ec45..028149c 100644
--- a/libraries/sanitizing.lib.php
+++ b/libraries/sanitizing.lib.php
@@ -13,7 +13,7 @@
*
* @return boolean True if string can be used as link.
*/
-function PMA_check_link($url)
+function PMA_checkLink($url)
{
if (substr($url, 0, 7) == 'http://') {
return true;
@@ -34,10 +34,10 @@ function PMA_check_link($url)
*
* @return string Replaced string
*/
-function PMA_replace_bb_link($found)
+function PMA_replaceBBLink($found)
{
/* Check for valid link */
- if (! PMA_check_link($found[1])) {
+ if (! PMA_checkLink($found[1])) {
return $found[0];
}
/* a-z and _ allowed in target */
@@ -119,7 +119,7 @@ function PMA_sanitize($message, $escape = false, $safe =
false)
$pattern = '/\[a@([^]"@]*)(@([^]"]*))?\]/';
/* Find and replace all links */
- $message = preg_replace_callback($pattern, 'PMA_replace_bb_link',
$message);
+ $message = preg_replace_callback($pattern, 'PMA_replaceBBLink', $message);
/* Possibly escape result */
if ($escape) {
hooks/post-receive
--
phpMyAdmin
------------------------------------------------------------------------------
Storage Efficiency Calculator
This modeling tool is based on patent-pending intellectual property that
has been used successfully in hundreds of IBM storage optimization engage-
ments, worldwide. Store less, Store more with what you own, Move data to
the right place. Try It Now! http://www.accelacomm.com/jaw/sfnl/114/51427378/
_______________________________________________
Phpmyadmin-git mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/phpmyadmin-git