Эх сурвалжийг харах

Little replace to avoid useless processing - refs #5637

Imanol Losada 10 жил өмнө
parent
commit
f73d452ec4

+ 1 - 1
main/social/profile.php

@@ -56,7 +56,7 @@ if (!empty($_POST['social_wall_new_msg_main']) || !empty($_FILES['picture']['tmp
     exit;
 
 } else if (isset($_GET['u'])) { //I'm your friend? I can see your profile?
-    $user_id     = (int) Database::escape_string($_GET['u']);
+    $user_id = intval($_GET['u']);
     if (api_is_anonymous($user_id, true)) {
         api_not_allowed(true);
     }