Advertisement
kiska

Untitled

Dec 6th, 2018
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. Allowed snippet:
  2. allowed = function(url, parenturl)
  3. local blog = read_file("blog")
  4. local concat = "https?://9volt-art.tumblr.com/"
  5. print("Before reject")
  6. if string.match(url, "'+")
  7. or string.match(url, "[<>\\%*%$;%^%[%],%(%)]")
  8. or string.match(url, "//$") then
  9. print("After rejection")
  10. return false
  11. end
  12. print("Before acceptance")
  13. if string.gmatch(url, concat) then
  14. print("After acceptance")
  15. return true
  16. end
  17.  
  18. return false
  19. end
  20.  
  21. Output:
  22. 128=200 http://assets.tumblr.com/fonts/fairwater/fairwater_script_regular-webfont.woff?v=96e975b7468359e6f67086305577e43e
  23. Before reject
  24. Before acceptance
  25. After acceptance
  26. Before reject
  27. After rejection
  28. 129=200 http://assets.tumblr.com/fonts/sourcecodepro/sourcecodepro-regular-webfont.woff2?v=c2bb363563f7a15a4c0fe91cf951a67c
  29. Before reject
  30. Before acceptance
  31. After acceptance
  32. Before reject
  33. After rejection
  34. Before reject
  35. After rejection
  36. Before reject
  37. Before acceptance
  38. After acceptance
  39. Before reject
  40. After rejection
  41. 130=200 http://assets.tumblr.com/fonts/sourcecodepro/sourcecodepro-regular-webfont.woff?v=c5fa36698a378c9c64711cec95efd69e
  42. Before reject
  43. Before acceptance
  44. After acceptance
  45. Before reject
  46. After rejection
  47. Segmentation fault (core dumped)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement